🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.gcc.help
Article #50572

Large Arrays

#50572
From: JEROME HANSABHAYA ELLEPOLA
Date: Wed, 15 Sep 1993 11:15
19 lines
1112 bytes
I am writing a CFD code which needs 10, arrays of [101][801] in the main
program.

In one function there is another 5, arrays of [101][801],
the program runs fine on a Spark10 but core dumps ( segmentation fault )
at that point.

When the arrays are defined as floats things seem to work.

I have about 64MB of RAM, and assuming that all functions use the memory
at all times, with 3 functions I would need (3*5+8)*101*801*4=15MB

Hardly a problem right?

I look forward to any pointers.

Regards

Jerome
Technical Details
Message-ID: <276tfp$96n@nuscc.nus.sg>
Path: arc1-ca.pugleaf.net!gmd.de!newsserver.jvnc.net!newsserver.technet.sg!nuscc.nus.sg!engp3056

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 11318c,5b89b3128344e7ac,start
X-Google-Attributes: gid11318c,public
X-Google-ArrivalTime: 1993-09-15 05:19:42 PST
Path: arc1-ca.pugleaf.net!gmd.de!newsserver.jvnc.net!newsserver.technet.sg!nuscc.nus.sg!engp3056
From: engp3056@leonis.nus.sg (JEROME HANSABHAYA ELLEPOLA)
Newsgroups: gnu.gcc.help
Subject: Large Arrays
Date: 15 Sep 1993 11:15:05 GMT
Organization: National University of Singapore
Lines: 21
Message-ID: <276tfp$96n@nuscc.nus.sg>
NNTP-Posting-Host: leonis.nus.sg
Keywords: Double, Float
X-Newsreader: TIN [version 1.2 PL0]