At 12:25 PM +0100 2/15/02, Juan de Dios Santander Vela wrote: >The PowerPC had, from the beginning, means to switch data endianness, and >from the G3, Motorola removed the severe penalty the little-endian mode >imposed on processing speed ---that's why Virtual PC 4 and 5 only run on G3 >or better processors--. If you set Mac OS X as 'the Mac development >platform', you have the guarantee of a PowerPC G3 or better. Anyway, you can >impose a G3 as the minimum for the Mac version of the PalmSimulator, just as >you removed 68k support from POSE, and have it run also on top of Mac OS 9, >using maybe even the same libraries you're using...
I don't know when these opcodes were added, but PowerPC does have nice "read/write byteswapped data" opcodes. I'm using them in the ARM version of Poser to good benefit. The problem is with using those opcodes in the Simulator. The Simulator is just the Palm OS source code compiled natively on a desktop platform. It accesses aggregate data via structs just like any other C application. There is no way in C to say "the fields in this struct are stored in Little Endian format, so generate the opcodes that will read and write them as such". So there's no easy way to get the Simulator to handle data in Little Endian format. -- Keith -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/tech/support/forums/
