Leif Neland wrote:
> 
> > The reason for this is that some gcc optimizations stages takes
> > exponentially more memory when compiling big functions.
> > bison produces one big function for the grammar parsing and its
> > this that takes a long time to compile;  To compile sql_yacc.cc quickly
> > on Intel, you nead at least 160M of free ram.  On a PentiumII 400mz with 256M
> > ram, it takes 11 seconds to compile sql_yacc.o.  Having to use swap
> > can easily make things 1000 times slower
> >
> 
> Is amount of ram available (portably) to configure?
> So configure could decide to use --low-memory by itself? Allowing
> overrides, naturally.
> 
> Leif
> 

There is actually a method to portably guess how much RAM your have available
from configure -- just write a small C program that will keep malloc()-ing until
it gets an error, but I do not think it is worth the effort.

-- 
Sasha Pachev

+------------------------------------------------------------------+
| TcX  ____  __     _____   _____  ___     ==  [EMAIL PROTECTED]        |
|     /*/\*\/\*\   /*/ \*\ /*/ \*\ |*|     Sasha Pachev            |
|    /*/ /*/ /*/   \*\_   |*|   |*||*|     mailto:[EMAIL PROTECTED]  |
|   /*/ /*/ /*/\*\/*/  \*\|*|   |*||*|     Provo, Utah, USA        |
|  /*/     /*/  /*/\*\_/*/ \*\_/*/ |*|____                         |
|  ^^^^^^^^^^^^/*/^^^^^^^^^^^\*\^^^^^^^^^^^                        |
|             /*/             \*\ Developers Team                  |
+------------------------------------------------------------------+


To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message

Reply via email to