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?




  In message <Pine.LNX.4.04.9902252322100.5058-100000@gches.goodnet.com>you wri
te:
  > 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?
If the image is 400k, but the sizes you've show above are accurate, then
either you symbol table is really big, or you have debugging information
in your executable.

Neither of which actually effect the runtime behavior of the program.

jeff