speed and space Optimization

Srinivas Rao.M msrao at vxl.co.in
Fri Mar 9 02:18:00 EST 2001


Ok. thanks for the reply Mr. Gabriel. How can i do the bench marking of
these options. Can i get some more information from somewhere on net.
-Srini...


On Thu, 8 Mar 2001, Gabriel Paubert wrote:

>
>
> 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.
>

--

Give everything you have today, because anything left over is lost forever.
-Mick Rashid


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






More information about the Linuxppc-embedded mailing list