Thread (1 message) 1 message, 1 author, 2001-03-08

Re: speed and space Optimization

From: Wolfgang Denk <hidden>
Date: 2001-03-08 17:18:01

In message [ref] you wrote:
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.
Just tested on our PPCBoot firmware:

   text    data     bss     dec     hex filename	==> size
  80628   22096   10476  113200   1ba30 ppcboot-Os	100%
  86332   22096   10476  118904   1d078 ppcboot-O2	105%
  90464   22328   10476  123268   1e184 ppcboot-O3	109%

Differences are  small,  but  they  exist  (and  they  can  make  the
difference if the code fits in a 128k boot ROM or not).


Wolfgang Denk

--
Software Engineering:  Embedded and Realtime Systems,  Embedded Linux
Phone: (+49)-8142-4596-87  Fax: (+49)-8142-4596-88  Email: wd@denx.de
Hindsight is an exact science.

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