This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: High memory consumption compiling syntax.c
Eli Zaretskii wrote:-
> Oh, I forgot to tell something important, I think: the error message
> reported by the user who had GCC on a Sparc bail out due to memory
> exhaustion was this:
>
> gcc -c -Demacs -DHAVE_CONFIG_H -I. -I/home/reader/local/src/emacs-21.0.105/src -I/usr/dt/include -g -O2 syntax.c
> syntax.c: In function `scan_sexps_forward':
> syntax.c:2844: virtual memory exhausted
>
> So this would mean the function scan_sexps_forward is the primary
> suspect, right? If it would help, I can post that function (it's
> about 350 lines).
I doubt it; it was just the function that ran out of memory.
If it's the compiler proper that's using the memory, someone with
better knowledge of that could help you better than I.
Neil.