To close up I shall report the results from various experiments I made with setting optimization level and/or ARM mode.
Changing the optlevel from the preferences panel produced modified code, but (in this concrete case) did not bring any speed. My interpretation: Because as the later experiments showed some gains are achievable, there must also be the places where the optimization slows down. By chance the result was 50-50. When applying optimization to particular places (via pragmas optimization_level and thumb): - There is a high probability that the optimization brings corrupted results. - ARM mode often causes crashes. - When none of the above happens, there is a good chance of getting faster code. Generally, I had the impression that optlevel brings more than using ARM mode. The gains that I could achieve this way were 5-10%. I am using CW 9.1. Jan Slodicka ----- Original Message ----- From: "Ben Combee" <[EMAIL PROTECTED]> > At 12:00 PM 6/26/2003, Jan Slodicka wrote: > >Sorry - I missed the 2nd question. Actually I don't know whether it is Thumb > >or ARM code - I can't find any place where CW would allow to specify this. > > #pragma thumb off > > will turn off Thumb code generation, making ARM code the default for that > file. We originally thought Thumb would be sufficient, but after V9 was > released, it was clear that lots of people wanted faster but larger code, > so the next release will have this setting in the pref panel. > > -- > Ben Combee <[EMAIL PROTECTED]> > CodeWarrior for Palm OS technical lead > Palm OS programming help @ www.palmoswerks.com > > > -- > For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/ -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
