GCC not awre of MMU
Jim Wilson
wilson@tuliptree.org
Thu Aug 7 07:13:00 GMT 2003
Schaefer Philipp wrote:
> But this Code would work only Correct If there would not be a MMU wich
> swaps Litle Endian to Big-endian Values in some part of Memory !!!
Try declaring the object as volatile. Gcc won't change the memory
access size for references to volatile objects, so it will load an
entire word from memory and then convert to a short within the register.
--
Jim Wilson, GNU Tools Support, http://www.SpecifixInc.com
More information about the Gcc-bugs
mailing list