On 2008-02-13, Oleg Verych <[email protected]> wrote:

> Alignment of members as well as whole structure is arbitrary. That's why
> mspgcc have "packed" attribute, but it's without (implicit for many
> developers) magic.

Are you saying tht the MSP430 backend gcc does not correctly
generate code to access misaligned struct members the way that
other backends (e.g. ARM) do?

> Thus, the only problem for newcomers is that info the mspgcc
> manual is just a tip of the iceberg. TI have no or little info
> on that, compiler vendors do magic.
>
> Maybe mspgcc assembler must just warn about known unaligned
> access in the code,

That would be helpful, but it's probably something the linker
would have to do.

> or docs must have more refs on the subject, or something
> already done in development tree?

-- 
Grant Edwards                   grante             Yow!  LIFE is a
                                  at               never-ending INFORMERCIAL!
                               visi.com            


Reply via email to