From: Rob Pike
Date: Wed, 7 Mar 2012 04:29:26 +0000 (+1100)
Subject: go_faq: a simple binary is a little smaller now
X-Git-Tag: weekly.2012-03-13~161
X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=0130a31366734fe0dd82a5c574437a3b6d2e1b28;p=gostls13.git
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
---
diff --git a/doc/go_faq.html b/doc/go_faq.html
index e06cab14cb..0b770377bb 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.