At 09:28 PM 11/5/2005, you wrote:
Good point.  I should have thought of that.

So what's the point of #pragma pack(2) or #pragma option align=packed ?

It's not really too useful for 68K. Also, some 68K architectures can run faster with 32-bit values on 4-byte alignment, and this will relax that if you're in that mode... but this doesn't matter for the plain 68000 CPU used in the original Palm devices.

And what is gcc doing to allow this ?

GCC will generate the slow byte-by-byte access code if needed. CodeWarrior will not.


-- Ben Combee, Senior Software Engineer, Palm, Inc.
   "Combee on Palm OS" weblog: http://palmos.combee.net/
   Developer Forum Archives:   http://news.palmos.com/read/all_forums/


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

Reply via email to