>am I right in thinking that:
>
>ARM gcc pads structures out to the next 4 bytes
>i386 gcc doesn't
>Alpha gcc doesn't
>
>Hence the above struct has size 14 on most architectures?
Yes. (Actually I'm not 100% sure about Alpha, but your comments about ARM and
i386 are correct.)
>Or is the whole scheme used by hfs ANSIly flawed, and for true
>portability it can only use one contiguous char array, as structures
>can be padded between any members?
Got it in one. As a workaround you can try using __attribute__((packed)) and,
in case of real desperation, -mstructure-size-boundary=8.
p.
unsubscribe: body of `unsubscribe linux-arm' to [EMAIL PROTECTED]
++ Please use [EMAIL PROTECTED] for ++
++ kernel-related discussions. ++