Date: Sun, 12 Oct 1997 13:47:49 +0200 (IST) From: Eli Zaretskii To: "Salvador Eduardo Tropea (SET)" cc: djgpp AT delorie DOT com Subject: Re: Compiler crashes... In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Precedence: bulk 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).