Email: Password: Remember Me | Create Account (Free)

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
06/04/04 16:06
Read: times


 
#71780 - RE: Compiler-dependence
Responding to: ???'s previous message
Dennis Welbourn said:
I second Wolfgang's note that endianess is compiler dependent.

What he actually said was, "The byte order for 8052 processors depends on the used compiler." (my emphasis)

Because the 8051 is an 8-bit processor, it knows nothing about multi-byte data at all[1] - therefore the compiler is completely at liberty to do whatever it likes.

This is not the case, however, with >8-bit processors: in this case, the processor hardware defines the order in which it expects the individual bytes of its 16-bit, 32-bit, or whatever-size words - and the compiler must abide by this.


[1] Apart from the odd 16-bit SFR, like the DPTR...

List of 23 messages in thread
TopicAuthorDate
Little Endian Big endian conversion.            01/01/70 00:00      
   RE: Little Endian Big endian conversion.            01/01/70 00:00      
      RE: Little Endian Big endian conversion.            01/01/70 00:00      
         RE: Little Endian Big endian conversion.            01/01/70 00:00      
            RE: Little Endian Big endian conversion.            01/01/70 00:00      
               RE: Little Endian Big endian conversion.            01/01/70 00:00      
                  RE: Little Endian Big endian conversion.            01/01/70 00:00      
                     RE: Little Endian Big endian conversion.            01/01/70 00:00      
               RE: Little Endian Big endian conversion.            01/01/70 00:00      
               Totally & Utterly Impossible!            01/01/70 00:00      
         RE: Little Endian or Big endian?            01/01/70 00:00      
      RE: Little Endian Big endian conversion.            01/01/70 00:00      
         RE: Junk            01/01/70 00:00      
   RE: Little Endian Big endian conversion.            01/01/70 00:00      
   RE: Little Endian Big endian conversion.            01/01/70 00:00      
      RE: machine-independent            01/01/70 00:00      
      RE: Little Endian Big endian conversion.            01/01/70 00:00      
         RE: Compiler-dependence            01/01/70 00:00      
            RE: Compiler-dependence            01/01/70 00:00      
   RE: Little Endian Big endian conversion.            01/01/70 00:00      
      RE: Little Endian Big endian conversion.            01/01/70 00:00      
   A Useful Link            01/01/70 00:00      
   RE: Little Endian Big endian conversion.            01/01/70 00:00      

Back to Subject List