This is the mail archive of the
cygwin@cygwin.com
mailing list for the Cygwin project.
Binaries compiled with GCC 3.2-3 much bigger than with 2.95.3-10 ?
- From: Frédéric L. W. Meunier <0 at pervalidus dot tk>
- To: cygwin at cygwin dot com
- Date: Fri, 5 Sep 2003 00:51:17 -0300 (BRT)
- Subject: Binaries compiled with GCC 3.2-3 much bigger than with 2.95.3-10 ?
I just switched to 3.2-3 and was impressed with the following:
Cygwin -O2 -O2 + -Wl,-s -Os -Os + -Wl,-s
------
2.95.3-10 15178 6656 15178 6656
3.2-3 26710 14336 26008 13824
Linux
-----
2.95.4.CVS 16475 7128 16283 6936
3.2.3 15885 6712 15427 6292
3.3.1 15802 6668 15320 6216
What's so different in 3.2-3 ? On Linux GCC 3.x produced
smaller binaries. On Cygwin the size doubled.
On Linux all 3 compilers default to -march=i686. I think it's
the same for Cygwin (i686-pc-cygwin), no ?
For the example I used lndir from XFree86 CVS. I packaged the
sources for it at
http://www.pervalidus.net/cygwin/lndir-CVS.tar.bz2 (9323
bytes).
--
How to contact me - http://www.pervalidus.net/contact.html
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/