From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 14712 invoked by alias); 5 Sep 2003 03:51:21 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 14703 invoked from network); 5 Sep 2003 03:51:20 -0000 Received: from unknown (HELO leia-auth.correio.tnext.com.br) (200.222.67.102) by sources.redhat.com with SMTP; 5 Sep 2003 03:51:20 -0000 Received: (qmail 2364 invoked by uid 0); 5 Sep 2003 03:51:18 -0000 X-Analyze: Velop Mail Shield v0.0.3 Received: from unknown (HELO ?192.168.254.1?) (fredlwm@200.141.116.220) by leia with SMTP; 5 Sep 2003 03:51:18 -0000 Date: Fri, 05 Sep 2003 03:51:00 -0000 From: =?ISO-8859-1?Q?Fr=E9d=E9ric_L=2E_W=2E_Meunier?= <0@pervalidus.tk> X-X-Sender: fredlwm@pervalidus.dyndns.org To: cygwin@cygwin.com Subject: Binaries compiled with GCC 3.2-3 much bigger than with 2.95.3-10 ? Message-ID: X-Archive: encrypt MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-SW-Source: 2003-09/txt/msg00343.txt.bz2 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/