home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / sys / amiga / programmer / 662 < prev    next >
Encoding:
Text File  |  1996-08-05  |  1.5 KB  |  37 lines

  1. Newsgroups: comp.sys.amiga.programmer
  2. Path: fuw.edu.pl!cyfronet!student!iskra
  3. From: iskra@student.uci.agh.edu.pl (Kamil Iskra)
  4. Subject: Re: HUGE executable in g++
  5. Message-ID: <DKyHo0.IFL@cyf-kr.edu.pl>
  6. Sender: news@cyf-kr.edu.pl (News Administrator)
  7. Nntp-Posting-Host: student.uci.agh.edu.pl
  8. Organization: Academic Computer Centre, CYFRONET
  9. X-Newsreader: TIN [version 1.1 PL8]
  10. References: <mgwill1.821197358@mik.uky.edu>
  11. Date: Wed, 10 Jan 1996 08:16:48 GMT
  12.  
  13. matthew williams (mgwill1@mik.uky.edu) wrote:
  14.  
  15. > I have been having a problem with GNU G++, I have a 10k source file that 
  16. > only includes the files iostream.h, iomanip.h, and stdio.h (i wrote it 
  17. > first with fstream.h but rewrote the code to use stdio.h because i 
  18. > thought fstream.h was making my executable large) and this 10k compiles 
  19. > into a 1454344 byte executable! (in a.out form) and nothing seems to make 
  20. > it into a reasonably sized executable, i compiled the program with this line:
  21.  
  22. > g++ -O2 -noixemul foo.cc -o foo -lnix
  23.  
  24. I think that you don't have to use -lnix when you already wrote -noixemul. 
  25.  
  26. > The file produced by that is 541k (which is better but not good) and 
  27.  
  28. Try to use -s options, which strips symbolic information.
  29.  
  30. Post output produced by -v option, which gives kind of log of G++ activities.
  31.  
  32. --
  33. / Kamil Iskra - AMIGA 1200, 68030 50MHz, HDD 850 MB, 10 MB RAM \
  34. | iskra@student.uci.agh.edu.pl  kiskra@ernie.icslab.agh.edu.pl |
  35. | http://student.uci.agh.edu.pl/~iskra                         |
  36. \ PGP public key available via Finger or WWW                   /
  37.