Maybe just activating O2 if gcc >= 4.7 (if the patch Alex was telling about works); then O3 if more than 8gb ram available and gcc >= 4.7.<div><br></div><div><br></div><div><br><br><div class="gmail_quote">On Thu, Feb 16, 2012 at 12:00 AM, Marc Feeley <span dir="ltr"><<a href="mailto:feeley@iro.umontreal.ca">feeley@iro.umontreal.ca</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="HOEnZb"><div class="h5"><br>
On 2012-02-15, at 4:41 PM, Alex Queiroz wrote:<br>
<br>
> Hallo,<br>
><br>
> 2012/2/15 Marc Feeley <<a href="mailto:feeley@iro.umontreal.ca">feeley@iro.umontreal.ca</a>>:<br>
>><br>
>>> I've read in the git commits that now the default flag is -O2, could this be the reason?<br>
>><br>
>> It could.  Please modify the configure script so that it uses -O1 and check if that works better.  I would be interested in the time both ways, and the version of your gcc.<br>
>><br>
><br>
> FWIW, I opened a bug[1] for GCC that, after fixed for 4.7.0, did let<br>
> me compile Gambit-C with -O3 and using `make -j 3` on machine with 8GB<br>
> of RAM, very quickly.<br>
><br>
> [1] - <a href="http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51389" target="_blank">http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51389</a><br>
<br>
</div></div>Neat!  I'm quite surprised that gcc -O3 when using --enable-single-host completes at all!  I have always used -O1 and only recently (this past week) noticed that the gcc I was using (v4.2.1) could compile at -O2 without taking too much RAM.  I think -O3 is pushing it.  I may have to revert to -O1 as a default if people are having problems with -O2.<br>


<br>
If only I could find a good heuristic for the configure script to choose the "right" optimization level for the user's development environment.<br>
<span class="HOEnZb"><font color="#888888"><br>
Marc<br>
<br>
</font></span></blockquote></div><br></div>