This is the mail archive of the egcs@egcs.cygnus.com mailing list for the EGCS project. See the EGCS home page for more information.


[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index] [Subject Index] [Author Index] [Thread Index]

Re: Huge cpp executables -- why?



> 
> Hello:
> 
> First the good news.  I've successfully compiled and installed glibc-2.2
> and the Linux 2.2.2 kernel on an i586 machine using the 1.1.2 pre 1
> release.  However, a hello world type C++ program produces a 400K
> executable, even with -fno_exeptions -O.
> 
> size reports
> 
>    text	   data	    bss	    dec	    hex	filename
>   47069	  15704	    504	  63277	   f72d	a.out
> 
> Is this expected?
> 

Did you configure egcs with --enable-threads --enable-shared? I think
they should be default for glibc 2 on Linux. Otherwise, you may not
run C++ binaries compiled on other Linux boxes.

-- 
H.J. Lu (hjl@gnu.org)