--- Begin Message ---
Subject: |
Re: Out of memory compilation |
Date: |
09 Jul 2007 00:11:13 GMT |
In article <address@hidden>,
Akanksha <address@hidden> writes:
> Bernd Strieder <address@hidden> wrote:
>> Hello,
>>
>> Akanksha wrote:
>> > I have a little problem here.. I am using g++ to compile a huge code
>> > of about 200,000 lines and the compilation gives me the following
>> > error
>>
>> Try reducing the optimization level or splitting up the file. The file
>> in question is extraordinarily large. Optimization can take huge
>> amounts of RAM, especially for large functions.
>
> I split the code into chunks.. Most of them seem to work fine except
> one huge 50,000 line function which gave a g++ internal error. I was
> able to compile the function by reducing its size to half. Though I am
> not convinced that g++ cannot handle a 50,000 line function. The
> function just has a series of function calls from the ILOG library.
>
I too did experience memory-problems with gcc-3.3.3, but once I switched
to gcc-4.1.2, all those problems magically disappeared. there's even
something mentioned in bugzilla on that topic...
--
Better send the eMails to netscape.net, as to
evade useless burthening of my provider's /dev/null...
before complaining because of my rudeness, read
http://www.unet.univie.ac.at/~a9702387/en/adl/liar-faq.txt
and killfile me resp. google on friday night GMT...
P
--- End Message ---
--- Begin Message ---
Subject: |
confirm 32332be6539d560f9c87ebf71f23b3f8cd5bb74c |
If you reply to this message, keeping the Subject: header intact,
Mailman will discard the held message. Do this if the message is
spam. If you reply to this message and include an Approved: header
with the list password in it, the message will be approved for posting
to the list. The Approved: header can also appear in the first line
of the body of the reply.
--- End Message ---