"Armel ASSELIN" <[EMAIL PROTECTED]> wrote in message
news:63293@palm-dev-forum...
>
> Hi all,
>
> I'm trying to optimize some code for PalmOS. It seems that CW7 does
not
> optimize very well (it is even slower when in "Faster" mode). I do not
want
> to type assembly code yet because it will not profit for other
platforms.
Are you moving the slider to a high optimization level in addition to
setting optimize for size or speed?
> Is there any spec of what it is really able to do ?
See http://www.metrowerks.com/whitepapers/#Optimize -- we don't have
this white paper generally available, but our sales team can send it to
you.
While I'm not an active compiler engineer, I have worked on the
CodeWarrior x86 compiler, which was quite competitive with the best
optimizations in Microsoft Visual C++. The 68K compiler uses the same
intermediate representation optimizations, but the 68k backend that
turns IR into instructions is one of the older pieces of code still in
use at Metrowerks, having evolved from the Macintosh compilers we were
releasing in the early 1990s. It has some known deficiencies.
Right now is too late in the release cycle of V8 to really look at
changing the compiler. I wish we had more time, but other features
we've been implementing have taken most of the time. However, if you
can privately provide us with some examples of code that you feel is
ineffectively optimized, we can look at working on this for future
versions.
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/tech/support/forums/