[SLL] (OT) Asm vs. C revisited

Mike Stunes kc0tqx at sio.midco.net
Mon Aug 28 17:44:54 PDT 2006


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

OK, I did this just to be fair:

gcc -Os -march=pentium-m -fomit-frame-pointer -pipe -o hello_c hello_c.c

Size: 6347 B

strip hello_c

Size: 3144 B

So, using the right gcc options, and using strip can significantly
reduce the size of the executable. But not quite as much as
hand-writing assembly code can. But on the other hand, writing a whole
program anything more complex than a Hello World gets to be a pain.
- --
73, Mike
KCØTQX
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFE844FvhU88QyXVccRAgd2AJ9jOW5Q/un3cbVkHryw2K4+YYkRTwCePi1f
dNjqYFvTwCUBPGggMsI4vnY=
=eVvK
-----END PGP SIGNATURE-----



More information about the linux-list mailing list