From 0130a31366734fe0dd82a5c574437a3b6d2e1b28 Mon Sep 17 00:00:00 2001
From: Rob Pike
Date: Wed, 7 Mar 2012 15:29:26 +1100
Subject: [PATCH] go_faq: a simple binary is a little smaller now About 10% for
hello, world. Maybe more reductions will come. Also clarify that we're
comparing printf against Printf (gcc can optimize aggressively, making this a
different sort of comparison).
R=golang-dev, rsc
CC=golang-dev
https://golang.org/cl/5756070
---
doc/go_faq.html | 8 +++++---
1 file changed, 5 insertions(+), 3 deletions(-)
diff --git a/doc/go_faq.html b/doc/go_faq.html
index e06cab14cb6..0b770377bbe 100644
--- a/doc/go_faq.html
+++ b/doc/go_faq.html
@@ -1375,9 +1375,11 @@ type checks, reflection, and even panic-time stack traces.
-A trivial C "hello, world" program compiled and linked statically using gcc
-on Linux is around 750 kB. An equivalent Go program using fmt.Printf
-is around 1.3 MB, but
+A simple C "hello, world" program compiled and linked statically using gcc
+on Linux is around 750 kB,
+including an implementation of printf
.
+An equivalent Go program using fmt.Printf
+is around 1.2 MB, but
that includes more powerful run-time support.