*BSD News Article 12356


Return to BSD News archive

Newsgroups: comp.os.386bsd.questions
Path: sserve!manuel.anu.edu.au!munnari.oz.au!constellation!osuunx.ucc.okstate.edu!moe.ksu.ksu.edu!crcnis1.unl.edu!wupost!cs.utexas.edu!uunet!emba-news.uvm.edu!sadye.emba.uvm.edu!wollman
From: wollman@sadye.emba.uvm.edu (Garrett Wollman)
Subject: Re: gcc - large arrays, out of vm - any way to avoid?
Message-ID: <1993Mar5.002210.16496@uvm.edu>
Sender: news@uvm.edu
Organization: University of Vermont, EMBA Computer Facility
References: <9303022137.AA04169@pizzabox.demon.co.uk>
Date: Fri, 5 Mar 1993 00:22:10 GMT
Lines: 19

In article <9303022137.AA04169@pizzabox.demon.co.uk> gtoal@gtoal.com (Graham Toal) writes:
>I'm writing a program which has very little source code, but a whapping
>big initialised char array at the head of it.  Well, I say 'whapping big',
>but in fact it's only 50K yet its running out of virtual memory during the
>compile (with the error: "prog.c:2683: Virtual memory exhausted.")

It is a well-known fact that GCC uses much more memory than necessary
while compiling large static arrays.  The developers of GCC have
announced no intention of fixing this.  If you care enough about it,
you can pay somebody else to fix it.


-GAWollman

-- 
Garrett A. Wollman   | Shashish is simple, it's discreet, it's brief. ... 
wollman@emba.uvm.edu | Shashish is the bonding of hearts in spite of distance.
uvm-gen!wollman      | It is a bond more powerful than absence.  We like people
UVM disagrees.       | who like Shashish.  - Claude McKenzie + Florent Vollant