"Michael Yam" <[EMAIL PROTECTED]> wrote:

> >>>
>   the compiler has probably optimized it to be word aligned.
>   i dont know for sure, but it may be the case that the
>   dragonball CPU requires all records to be on word boundaries
> <<<
> 
> Yes, from the 1998 Palm DevCon, I recall the CPU is optimized for word
> boundaries, so I'd think twice about finding ways to pack the structure.

A slight correction is in order. The CPU *requires* word boundaries for 
data types larger than one byte. Trying to read/write a 16 or 32-bit 
value at an odd address generates the M68000 Address Error exception 
(in other words, you get a fatal error).

Some members of the M68000 processor family can access word and long 
data at odd addresses, but the CPU in the Dragonball is not one of 
them.

--
Roger Chaplin
<[EMAIL PROTECTED]>

Reply via email to