home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!europa.asd.contel.com!emory!kd4nc!hpuercc.atl.hp.com!hpuerca.atl.hp.com!aaa
- From: aaa@hpuerca.atl.hp.com (Simon Fowler)
- Newsgroups: comp.sys.hp
- Subject: Re: executable sizes in fortran
- Message-ID: <Bu2BvF.8Aw@atl.hp.com>
- Date: 4 Sep 92 16:45:13 GMT
- References: <lee.715546990@ceg.uiuc.edu>
- Sender: news@atl.hp.com
- Organization: Hewlett-Packard Company, Atlanta GA
- Lines: 26
-
- In article <lee.715546990@ceg.uiuc.edu>, lee@ceg.uiuc.edu (Chris Lee) writes:
- > One of our users has a question:
- >
- > Why are the fortran executables SOOOOOO BIIIIIIIIIIG?
- > It seems that "all" of the data is being allocated at
- > compile/link time, and he would like to know if there is a
- > way to force the compiler/linker to allocate it at runtime.
- >
- > We are running HPUX 8.07 on 9000/700s.
-
- Typically this is caused by large (should say LARGE) arrays that are statically allocated.
- I usually see this when code is ported from another machine and then compiled with the -K
- option to force all data to static storage (instead of being put on the stack). If this is
- the case, you can declare the array as being in COMMON, e.g.
-
- change
-
- DIMENSION BIG(1000000)
- to
-
- DIMENSION BIG(1000000)
- COMMON /BIGCOM/BIG
-
- and don't compile with -K. You'll have to figure out which modules you can use this on.
-
- simon
-