home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / comp / os / os2 / programm / 7210 < prev    next >
Encoding:
Internet Message Format  |  1992-12-27  |  1.4 KB

  1. Path: sparky!uunet!haven.umd.edu!darwin.sura.net!gatech!prism!gt3968a
  2. From: gt3968a@prism.gatech.EDU (Yang, Che Kan)
  3. Newsgroups: comp.os.os2.programmer
  4. Subject: emx/gcc large data structure problem
  5. Message-ID: <78835@hydra.gatech.EDU>
  6. Date: 28 Dec 92 01:57:16 GMT
  7. Organization: Georgia Institute of Technology
  8. Lines: 29
  9.  
  10. I was trying to use emx 0.8e gcc.  I my program, I need to have a 
  11. lge static data sturcture in the beginning of main().
  12.  
  13. The program compiled fine using gcc. ( as usual, it crash using
  14. Borlandc C++ 3.1 cause each element in my array is > 64k, and I 
  15. have a thousand of them. )
  16.  
  17. But when I tried to run it, it tried to claim all my disk space
  18. as swap file.  Even I have 20 meg on my HD, it still tried to 
  19. use it all and keeps on going until it crash OS/2 all.
  20.  
  21. I've heard that it is a general gcc ( whether UNIX or OS/2 ) problem.
  22. And from the newsgroups, I was told that FSF is trying to fix
  23. this.
  24.  
  25. Wondering whether anybody have this problem before and whether
  26. there is a way to fix this? I mean without changing the program
  27. at all.  There is some other ways I can implement the data structure
  28. but I am curious to see how to fix that problem
  29.  
  30. Thank you all in advance
  31.  
  32.  
  33. Yang, Che Kan
  34. Georgia Institute of Technology, Atlanta Georgia, 30332
  35. uucp:     ...!{allegra,amd,hplabs,ut-ngp}!gatech!prism!gt3968a
  36. Internet: gt3968a@prism.gatech.edu
  37.           ayang@math.gatech.edu
  38.  
  39.