In a conduit you have to use #pragma pack(2) and #pragma pack() to align
the bytes. The motorola chip and intel chips are different. This
allows you to read the data from the structures correctly.
Kenichi Okuyama wrote:
> >>>>> "CL" == Chris Lutz <[EMAIL PROTECTED]> writes:
> CL> Does any body know of an equivalent of this statment
> CL> #pragma pack(1)
> CL> that will work on the palm pilot?
>
> 1) That's statement for C Compiler, not for specific DEVICE.
>
> 2) all the pragma is implementation dependent. So, you have to
> describe what that "pack(1)" really means.
>
> 3) Supposing that "pack(1)" pragma stands for "1 byte alignment"
> request ....
>
> NO. There is no compiler that I know of. Reason comes from m68k
> cpu.
>
> m68k CPU can only access to address of even number.
> So, for ease and performance, most of the compiler simply
> do not allow 1 byte alignment.
>
> ( This does not mean you can't create compiler that can handle
> one byte alignment. Only, performance will become auful. So,
> at least, I never seen any compiler that supports 1 byte
> alignment for m68k )