home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!gatech!usenet.ins.cwru.edu!magnus.acs.ohio-state.edu!cis.ohio-state.edu!ucbvax!ROS6.GSFC.NASA.GOV!mukai
- From: mukai@ROS6.GSFC.NASA.GOV (Koji Mukai)
- Newsgroups: comp.lang.fortran
- Subject: Size of executables
- Message-ID: <9209031948.AA10327@ros6.gsfc.nasa.gov>
- Date: 3 Sep 92 19:48:09 GMT
- Sender: daemon@ucbvax.BERKELEY.EDU
- Lines: 24
-
- Dear Learned Netters,
-
- One recent post compared the size of executables between Fortran and C,
- in passing. That has reminded me of something I've noticed a long time
- ago: the size of the executable files are very different between VAX/VMS
- (PROG.EXE) and UNIX (a.out) versions.
-
- I did one test: a program that simply says "hello" on stdout.
-
- VAX/VMS HELLO.EXE: 6 blocks ~3 kbytes
- Sun f77 a.out: ~49 kbytes
- Sun cc a.out: ~16 kbytes
-
- In more realistic cases with big arrays and complex calculations,
- I don't have detailed numbers but the Sun Fortran versions tend to
- be 4-10 times bigger than the VAX/VMS version, whenever I checked.
-
- (1) Why? (Just curious)
- (2) Can I make the Sun executables any smaller (the above numbers are
- after strip)? Am I missing some compiler switches or something?
- (3) Are there any penalties for big executables, apart from the obvious
- need for more disk space? Or for that matter, any advantages?
-
- Koji Mukai
-