Re: malloc() fails: 32MB heap limit and how to work around?
"Dave and Natalie" <[email protected]> Mon, 20 Oct 2003 20:11:27 -0800
| Newsgroups | gmane.comp.ide.emx.devel |
|---|---|
| Message-ID | <[email protected]> |
On Mon, 20 Oct 2003 19:44:16 +0200, Thomas Hoffmann wrote: > >When compiling with "gcc proggi.c" it exhausts the user memory after 29 >mallocs() >... >298516032 290005120 >29: malloc failed >301989440 290005120 >30: malloc failed >... > >When compiling with "gcc proggi.c -Zcrtdll" it cannot malloc more than 32MB: > >10092160 10005144 >20119168 20005144 >30146176 30005144 >3: malloc failed >33554048 30005144 >4: malloc failed >.... > >Any clues/ workarounds? Hmm, here using gcc 2.81 I run out of memory at 264961600 260005120 26: malloc failed with and without -Zcrtdll Dave