Executable size increase using egcs 1.0.1 on Solaris 2.6

Yusuf Goolamabbas yusufg@krdl.org.sg
Mon Apr 20 22:16:00 GMT 1998

In http://www.cygnus.com/ml/egcs/1998-Mar/0391.html , Jason Merril
<jason@cygnus.com> suggested using GNU ld. 

I compiled binutils-2.9 with a patch from Ian Taylor <ian@cygnus.com>
posted on gnu.utils.bug to prevent strip from dumping core and then
compiled egcs-1.0.2 with --with-gnu-as and --with-gnu-ld and
--enable-haifa. The results are around the same as using egcs-1.0.2
with the native assembler and linker. Compared to gcc-, the
code size increase for Hello World is 4x.

gcc version egcs-2.90.27 980315 (egcs-1.0.2 release) on

I haven't checked if this problem has been solved in the recent
snapshots. Can somebody who has the recent snapshots on
sparc-sun-solaris2.6 let us know ? 

Here's the test program

#include <stdio.h>

int main(int argc, char *argv[])
    printf("Hello World!\n");
         return 0;

Thanks, Yusuf

Kent Ridge Digital Labs (Formerly Institute of Systems Science)
Heng Mui Keng Terrace, Singapore 119597, Republic of Singapore
Tel: +65 874-3116, Fax: +65 774-4990,  Email: yusufg@krdl.org.sg

More information about the Gcc mailing list