home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / comp / lang / fortran / 3415 < prev    next >
Encoding:
Text File  |  1992-09-03  |  1.5 KB  |  39 lines

  1. Newsgroups: comp.lang.fortran
  2. Path: sparky!uunet!cs.utexas.edu!zaphod.mps.ohio-state.edu!usc!sol.ctr.columbia.edu!destroyer!ubc-cs!unixg.ubc.ca!sitka.fnal.gov!morgan
  3. From: morgan@sitka.fnal.gov (Morgan Burke)
  4. Subject: Re: Size of executables
  5. Message-ID: <1992Sep4.002016.21633@unixg.ubc.ca>
  6. Sender: news@unixg.ubc.ca (Usenet News Maintenance)
  7. Nntp-Posting-Host: sitka.triumf.ca
  8. Organization: Fermi National Accelerator Laboratory, Batavia IL
  9. References:  <9209031948.AA10327@ros6.gsfc.nasa.gov>
  10. Date: Fri, 4 Sep 1992 00:20:16 GMT
  11. Lines: 26
  12.  
  13. >     VAX/VMS  HELLO.EXE: 6 blocks ~3 kbytes
  14. >     Sun f77  a.out: ~49 kbytes
  15. >     Sun cc   a.out: ~16 kbytes
  16. >(1) Why?   (Just curious)
  17.  
  18. Two reasons that I can think of:
  19.    -- VAXes are CISC machines and require fewer instructions to
  20.       accomplish the same task as a RISC machine like a SparcStation
  21.    -- VMS makes use of shared libraries, so that portions
  22.       of your code may not actually be contained in your .EXE file
  23.  
  24. >(2) Can I make the Sun executables any smaller (the above numbers are
  25. >after strip)?  Am I missing some compiler switches or something?
  26.  
  27. I don't program on Suns, but SGI does have an option to use shared 
  28. libraries.
  29.  
  30. >(3) Are there any penalties for big executables, apart from the obvious
  31. >need for more disk space?  Or for that matter, any advantages?
  32.  
  33. You may suffer a paging penalty, if the control flow of your code 
  34. jumps all over the place (ie. in and out of virtual memory).  There
  35. will also be a small start-up penalty as the image is read, of course.
  36.  
  37. -- Morgan Burke (morgan@reg.triumf.ca)
  38.  
  39.