Mail Archives: djgpp/1997/10/12/07:51:26
On Thu, 9 Oct 1997, Salvador Eduardo Tropea (SET) wrote:
> Seems that gcc isn't just calling malloc (or calloc) to create the
> array.
I wasn't talking about memory required to create the array. The array
isn't created by cc1, it is the linker which does it. cc1 only needs
to parse the source, it does not allocate the space for the variables
it parses.
> Seems that a lot of tasks are involved in this simple thing
> so I can beleive that a 256Kb couldn't be enough but not Mbs of
> virtual memory.
My testing indicates (see my other mail in this thread) that cc1
indeed uses malloc'ed storage, not the stack space, and that it's
probably the parse tree build process that's responsible for the
outrageous memory usage.
> I was getting simple crashes I was tried enlarging the stack.
It might be because of the DPMI server you are using. I tested under
CWSDPMI and Windows 95, and only saw "out of virtual memory" messages
under CWSDPMI (Windows 95 just paged, but let the compiler finish).
- Raw text -