This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Huge cpp executables -- why?
- To: gtc at gches dot goodnet dot com (Geoffrey T. Cheshire)
- Subject: Re: Huge cpp executables -- why?
- From: hjl at lucon dot org (H.J. Lu)
- Date: Fri, 26 Feb 1999 07:39:54 -0800 (PST)
- Cc: egcs at cygnus dot com
>
> 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)