This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: GCC not awre of MMU


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



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]