Compiler flags and memory usage

Kevin Kofler kevin.kofler at chello.at
Sun Jun 15 22:12:28 UTC 2014


Antonio Trande wrote:
> To pass these problems, I had to decrease '-O' optimization flag
> gradually to '-O1' or '-O0', latest attempt is the removal of '-pipe'
> from RPM_OPT_FLAGS.
> 
> What's best choice in these cases?

Definitely not -O0, that generates really crappy (slow and large) code. I'd 
also not recommend -O1. If you must change something, remove -pipe, that 
only makes builds slower (given sufficient RAM for the piping), but does not 
affect the quality of the generated code.

        Kevin Kofler



More information about the devel mailing list