home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / comp / sys / amiga / programm / 15982 < prev    next >
Encoding:
Internet Message Format  |  1992-11-17  |  1.8 KB

  1. Path: sparky!uunet!charon.amdahl.com!pacbell.com!sgiblab!spool.mu.edu!agate!doc.ic.ac.uk!uknet!keele!teach.cs.keele.ac.uk!u0g78
  2. From: u0g78@teach.cs.keele.ac.uk (MN Steed)
  3. Newsgroups: comp.sys.amiga.programmer
  4. Subject: Re: found g++ in gcc, but can`t seem to co
  5. Message-ID: <BxvGnq.A41@gabriel.keele.ac.uk>
  6. Date: 17 Nov 92 17:59:49 GMT
  7. References: <1992Nov17.093739.9098@eua.ericsson.se>
  8. Sender: news@gabriel.keele.ac.uk (UseNet News Service)
  9. Organization: Keele University, England
  10. Lines: 28
  11. Originator: u0g78@teach.cs.keele.ac.uk
  12. Nntp-Posting-Host: bilbo.teach.cs.keele.ac.uk
  13.  
  14. From article <1992Nov17.093739.9098@eua.ericsson.se>, by etxpihl@eua.ericsson.se (Tomas Pihl):
  15. > In <1992Nov17.070253.1820@sol.cs.wmich.edu> 22black@sol.cs.wmich.edu (Martin Black) writes:
  16. >>> How can a simple C++-program that just do a cout << "Hellp world" end up as a 
  17. >>>54kb binary file?
  18. >>[laugh]  if you think that is big [laugh] try running it on sunOs.  I get a
  19. >>hello world to be at 250k.  In fact as soon as I include the iostream.h and
  20. > Holy smoke! I just tried it on Sun's `CC' with Cfront 2.1 and the file is
  21. > about 24kb.
  22.  
  23. Getting slightly off of the point about amiga's perhaps.....
  24.  
  25. Anyway, I'd guess the 24kb sun executable is on a SunOS 4.1 machine? Where
  26. the sun's use run time binding, rather than link time....
  27.  
  28. Here, using cc on a Sun SparcII, many programs compile to be 16kb, or 24kb,
  29. but soon as you start using gcc on the Sparcs, the program size jumps upto
  30. 150-240Kb.
  31.  
  32. Still, I'd like to know why g++ on the Amiga (presumably gcc 2.2.2) ends up
  33. with a 54kb binary, as it uses the ixemul.library for most of it's functions
  34. (doesn't it??) If not, does anyone know what ixemul.library actually does? 
  35. Unix emulation??
  36. -- 
  37. Martin N. Steed    
  38.  
  39. JANET:    u0g78@uk.ac.keele.cs.teach.bilbo
  40. InterNet: u0g78@bilbo.teach.cs.keele.ac.uk
  41.