Grant Edwards @ Wed, 13 Feb 2008 18:55:32 +0000 (UTC)
>
> 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?

Based on what i've saw in this thread -- yes.

>> 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.

I doubt it is possible for all kinds of addressing.
______


Reply via email to