speed and space Optimization

Gabriel Paubert paubert at iram.es
Fri Mar 9 01:54:16 EST 2001


On Thu, 8 Mar 2001, Srinivas Rao.M wrote:

>
> hi,
>
> Please tell me the various set of compilation flags we should use in
> order to optimize our code. I want to maintain two seperate versions of
> my codebase: one with Speed optimized and the other with Space optimized.
> I have tried enabling the -O. but it is a general optimizer. I want to
> have two distinct codebases.

Actually, the gcc code generation of PPC lacks in this area. There are
very few differences between -O2 -Os (first one is the standard for speed
although you might want to try -O3). -Os is in theory the space
optimization, but there are very few places in the rs6000/ppc description
that depend on whether the code should be optimized for space or not.
There will be some difference, but relatively very small.

	Regards,
	Gabriel.


** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/






More information about the Linuxppc-embedded mailing list