Thread (5 messages) flat view 5 messages, 3 authors, 2001-03-08

Re: speed and space Optimization

From: Gabriel Paubert <hidden>
Date: 2001-03-08 14:54:16

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/
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help