BrownB wrote:
Hello, I'm using PRC-Tools to develop a PalmOS sw, and I'm experiencing
some difficulties with the GCC option -O3 for the higher level of
optimization. I'm developing a RealTime application and so far, with
that options the final code is faster enough for me.


Now, I found that with that option set some object files are "incorrect",
i.e. some functions inside that files cause system errors, while without
the '-O3' option everything works well.

One thing you could try is looking at the gcc documentation. If I remember correctly, -O3 simply turns on several individual optimizations in addition to what -O2 turns on. On the version whose documentation I'm looking at, -O3 turns on everything -O2 does plus -frename-registers and -finline-functions. On some other version, it might be a different set of optimizations.

So, you could try turning on those optimization switches individually
and testing your application.  Hopefully then you'd be able to identify
which individual optimization is causing the problem, and you can
enable all the other optimizations and leave the problematic one off.
Then you should get most of the performance benefit and still have
correct code.

  - Logan

--
For information on using the PalmSource Developer Forums, or to unsubscribe, 
please see http://www.palmos.com/dev/support/forums/

Reply via email to