Hello,

Since I last emailed this list, I've had great success with the mspgcc compiler 
(I was using the windows installer release).  That is, up until late last week, 
when I got to a part of the codebase for the project I'm working on which 
declared a struct whose first member was a WORD.  I found that for some reason 
the compiler was electing to allocate on the stack an instance of this struct 
aligned at an odd memory address.  This causes the msp430 to truncate any 
operations on this variable to the previous even address (overwriting a byte of 
another variable).  Obviously, this is no good.

In searching for a cure for my problem, I have recompiled mspgcc (I eventually 
picked up on the fact, I think after reading it the tenth time, that I should 
use 3.2.3), binutils (2.19 and 2.18), gdb (6.8), using the patches both from 
CVS and from Bazaar (both from the gcc-msp430x/gcc-3.3 and 
mspgcc-core/gcc/gcc-3.3, along with all the rest).  These all produced the same 
result, unfortunately - a misaligned WORD.

Then I came across an email thread from late 2008 that looked like it was a 
similar problem (unaligned access of packed structs - Patch from Peter Jansen), 
and attempted to apply this patch and recompile one last time.  Unfortunately, 
my program now will not compile at all; the assembler returns a cryptic "Error: 
missing operand".

I'm feeling a little forlorn here, and I'm really hoping that someone can help 
guide me - I would love to be able to use this product.  Is there any hope that 
someone could update the windows installer to include the fix to this (along 
with any other great updates I'm sure have accumulated in the last year or so) 
?  If not, is there a foolproof way I can carry this out?

Thank you in advance,

Nate Bragg

Reply via email to