Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sdd.hp.com!spool2.mu.edu!uunet!munnari.oz.au!diemen!sol!quan From: quan@sol.surv.utas.oz (Stephen Quan) Newsgroups: comp.lang.fortran Subject: Array dilemma. Message-ID: Date: 23 Jan 91 00:34:05 GMT Sender: news@diemen.utas.edu.au Distribution: comp Lines: 29 I am currently on a project for surveyors and recently attempted to port the code from our Sun workstation to a PC. Unfortunately, the original code needed double precision arrays of the order of 50000 elements or higher. We believe that the current version of Microsoft Fortran falls down because it could not handle such code so I pushed the department to go for the Lahey Fortran F77L compiler. However, I now believe that the F77L compiler will not solve this problem either. Cause of problem DOUBLE PRECISION BIG(3,50000) Synopsis of problem compiler won't compile code for BIG is size 3x50000. Synopsis 2 PC won't load executable when BIG is size 3x4000. Synopsis 3 Seems to runs ok, when BIG is size 3x3000. Current Compiler Microsoft Fortran. Current Size of EXE About 150K (for both Synopsis 2 and 3). Question 1 Will F77L handle this problem? Question 2 Does F77L allocated space for arrays in the EXE? - Will I get a larger EXE file? (somewhat 600K?). Question 3 Is there a compiler that would solve this problem? There is little chance that I can push the department to get an F77L/EM, but I would be interested if that or any other compiler would solve my problem. If all fails, I probably replaced the array with random accessing a large file instead. -- Stephen Quan, University of Tasmania.