home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.fortran
- Path: sparky!uunet!utcsri!helios.physics.utoronto.ca!alchemy.chem.utoronto.ca!system
- From: system@alchemy.chem.utoronto.ca (System Admin (Mike Peterson))
- Subject: Re: why are fortran binaries so large?
- Message-ID: <1992Jul24.170926.214@alchemy.chem.utoronto.ca>
- Organization: University of Toronto Chemistry Department
- References: <dedmunds.711917278@sfu.ca> <OHL.92Jul23231746@ips105.desy.de>
- Date: Fri, 24 Jul 1992 17:09:26 GMT
- Lines: 16
-
- In article <OHL.92Jul23231746@ips105.desy.de> ohl@ips105.desy.de (Thorsten Ohl) writes:
- >
- >At least on Apollos and HP-UX boxes you can trick the compiler to
- >allocate the offending array in the BSS segment by putting it into a
- >COMMON block. Yes, it's a hack, but it can reduce the size of your
- >binaries tremendously.
-
- If you use the '-K' option (to save and zero your variables), HP-UX
- will always create a huge executable; Apollo/Domain, SGI and IBM
- RS/6000 do not even when SAVE (or the compiler switch equivalent) is
- used, unless of course DATA is used to actually initialize
- the variables/arrays, when there is no alternative except to write
- them into the executable. Otherwise the COMMON trick does the job.
- --
- What are the chances that any computer system will ever "work" properly?
- ... and Slim just left town. -*- Mike Peterson, SysAdmin, U/Toronto Chemistry
-