Compiling in low-memory conditions

Werner Koch wk at gnupg.org
Mon Apr 4 09:32:44 CEST 2011


On Mon,  4 Apr 2011 07:34, g.esp at free.fr said:

> Not enabling debugging with '-g' should spare memory for the compilation.

I don't think this helps.  The optimizer is the problem and has always
been.  It tries to unroll the core of the twofish algorithm but it can't
get it better than what we have in the source code.  

Newer gcc versions default to -O2 which exhibits the problem.  Use -O1
or return to an older gcc version.


Shalom-Salam,

   Werner

-- 
Die Gedanken sind frei.  Ausnahmen regelt ein Bundesgesetz.




More information about the Gcrypt-devel mailing list