This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Large Arrays/Commons
- From: plischke at isam dot de
- To: gcc-help at gcc dot gnu dot org
- Date: Mon, 9 Dec 2002 19:46:14 +0100 (MET)
- Subject: Large Arrays/Commons
Hello,
eventually somebody can help (or tell me that there is no solution):
- I have a rather complex finite element code (to be compiled with g77)
and would like to run
a bigger model than previously. I have however problems in using
sufficiently large arrays.
I split the large arrays into three COMMON BLOCKS, e.g.
COMMON /A(50000000)
COMMON /SOL1/ B(28000000)
COMMON /SOL2/ C(56000000)
with IMPLICIT REAL*8 (A-H,O-Z)
I can compile and link without problems,
but get a segment violation at excution (immediately, and also if
a use just a main program for storage allocation (i.e. don't call
any subroutines)
I suppose that the maximum storage to be allocated is limited by the
physical memory of my PC (1 GB), because there are no problems as long
as the sum of all allocated storage is araound 900 MB.
Is there any solution?
Do you need more information?
I can also call you on the phone, if you are ready to help.
Thanks
Bertold Plischke
ISAMGEO-Engineering GmbH
Junkernstr. 35
D-65205 Wiesbaden
Telefon +49 6122 507910
Telefax +49 6122 507912
E-mail: plischke@isam.de