home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.fortran
- 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
- From: morgan@sitka.fnal.gov (Morgan Burke)
- Subject: Re: Size of executables
- Message-ID: <1992Sep4.002016.21633@unixg.ubc.ca>
- Sender: news@unixg.ubc.ca (Usenet News Maintenance)
- Nntp-Posting-Host: sitka.triumf.ca
- Organization: Fermi National Accelerator Laboratory, Batavia IL
- References: <9209031948.AA10327@ros6.gsfc.nasa.gov>
- Date: Fri, 4 Sep 1992 00:20:16 GMT
- Lines: 26
-
- > VAX/VMS HELLO.EXE: 6 blocks ~3 kbytes
- > Sun f77 a.out: ~49 kbytes
- > Sun cc a.out: ~16 kbytes
- >(1) Why? (Just curious)
-
- Two reasons that I can think of:
- -- VAXes are CISC machines and require fewer instructions to
- accomplish the same task as a RISC machine like a SparcStation
- -- VMS makes use of shared libraries, so that portions
- of your code may not actually be contained in your .EXE file
-
- >(2) Can I make the Sun executables any smaller (the above numbers are
- >after strip)? Am I missing some compiler switches or something?
-
- I don't program on Suns, but SGI does have an option to use shared
- libraries.
-
- >(3) Are there any penalties for big executables, apart from the obvious
- >need for more disk space? Or for that matter, any advantages?
-
- You may suffer a paging penalty, if the control flow of your code
- jumps all over the place (ie. in and out of virtual memory). There
- will also be a small start-up penalty as the image is read, of course.
-
- -- Morgan Burke (morgan@reg.triumf.ca)
-
-