🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.os.os2.programmer
Article #2694

emx/gcc large data structure problem

#2694
From: Yang, Che Kan
Date: Mon, 28 Dec 1992 01:57
28 lines
1431 bytes
I was trying to use emx 0.8e gcc.  I my program, I need to have a 
lge static data sturcture in the beginning of main().

The program compiled fine using gcc. ( as usual, it crash using
Borlandc C++ 3.1 cause each element in my array is > 64k, and I 
have a thousand of them. )

But when I tried to run it, it tried to claim all my disk space
as swap file.  Even I have 20 meg on my HD, it still tried to 
use it all and keeps on going until it crash OS/2 all.

I've heard that it is a general gcc ( whether UNIX or OS/2 ) problem.
And from the newsgroups, I was told that FSF is trying to fix
this.

Wondering whether anybody have this problem before and whether
there is a way to fix this? I mean without changing the program
at all.  There is some other ways I can implement the data structure
but I am curious to see how to fix that problem

Thank you all in advance


Yang, Che Kan
Georgia Institute of Technology, Atlanta Georgia, 30332
uucp:     ...!{allegra,amd,hplabs,ut-ngp}!gatech!prism!gt3968a
Internet: gt3968a@prism.gatech.edu
          ayang@math.gatech.edu
Technical Details
Message-ID: <78835@hydra.gatech.EDU>
Path: arc1-ca.pugleaf.net!sparky!uunet!haven.umd.edu!darwin.sura.net!gatech!prism!gt3968a

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!haven.umd.edu!darwin.sura.net!gatech!prism!gt3968a
From: gt3968a@prism.gatech.EDU (Yang, Che Kan)
Newsgroups: comp.os.os2.programmer
Subject: emx/gcc large data structure problem
Message-ID: <78835@hydra.gatech.EDU>
Date: 28 Dec 92 01:57:16 GMT
Organization: Georgia Institute of Technology
Lines: 29