Pete James wrote:
So my questions are: How can I force GCC to create code that works on the whole 16bit word? Or is there another way of doing it?
If it is important that you have exact control over the memory accesses, don't do the union of bitfields overlay trick. Use explicit and/or masking.
nathan
-- Nathan Sidwell :: http://www.codesourcery.com :: CodeSourcery LLC nathan@xxxxxxxxxxxxxxxx :: http://www.planetfall.pwp.blueyonder.co.uk