[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [bluetooth-dev] Re: Porting to ARM

Gordon McNutt[SMTP:gmcnutt@xxxxxxx.com] wrote:

> gcc can handle it if you use __attribute__ ((packed)) on the guilty structs.
> See 'info gcc' or http://gcc.gnu.org/onlinedocs/gcc_toc.html and search for
> packed.
> --Gordon

That will align the variables correctly, but it doesn't solve the problem
when the processor doesn't allow misaligned access, as well as the
endianness problem.