Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!oakhill!nddsun1!digital!digital.sps.mot.com!chen From: chen@digital.sps.mot.com (Jinfu Chen) Newsgroups: comp.sys.apollo Subject: Re: Problems with Fortran-Compiler Message-ID: <4ff9d7df.3593b@digital.sps.mot.com> Date: 23 Feb 91 01:00:31 GMT References: <250@mailgzrz.tu-berlin.de> Sender: news@digital.sps.mot.com Organization: Motorola, LICD, SPS, Mesa, AZ Lines: 25 Nntp-Posting-Host: logic In article <250@mailgzrz.tu-berlin.de> jaenicke@w414zrz.zrz.tu-berlin.de (Lutz Jaenicke) writes: >We are doing FEM-calculations which require the use of large >arrays. The arrays are of static size and declared in the >program header. The compiler is running well and .o-Files of >normal size are generated. When the program is linked, it seems >that all the arrays are allocated, filled with nothing >and then are written into the executable file, so that a large >amount of diskspace is wasted. Under SR10.2p the executables >where of normal size (which means some 100k), now they take MEGABYTES. I noticed similar situation with cc6.7. It turns out when a large size of static variable is declared (large array), the executable is filled. Then I found out a compiler switch -compress in /com/cc (-W0,-compress in /bin/cc) which works quite well. Checking over ftn.hlp and man f77 I couldn't find similar switch. Maybe someone knows FORTRAN could help? -- Jinfu Chen (602)898-5338 Motorola, Inc. SPS Mesa, AZ ...uunet!motsps!digital!chen chen@digital.sps.mot.com CMS: RXFR30 at MESAVM ---------- Brought to you by Super Global Mega Corp .com