I wrote:
> Actually, Intel has slightly different packing rules than ARM. ...

Richard M. Hartman wrote:
> You can set the packing rules in the compiler.

True, but the various processors (68K, ARM, Intel), have various alignment
rules. These rules make it much more useful if the compiler generally uses
packing rules that guarantee these alignment rules. Manually overriding
these packing rules for a particular piece of code can be useful
occasionally.

If you told your compiler to satisfy ARM's "natural" alignment rules, all
the other processors would be happy too, but you might be wasting some
space. The other processors (68K, Intel) use the more lenient "even"
alignment rules.

> I presume that it is set
> for longword (4 byte) boundaries in the simulator.

I don't know. Even would be adequate for the simulator, but we might use
natural to make it more similar to ARM. OTOH, we might use even to make it
as different as possible. :)
-
Danny

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

Reply via email to