Bytes order and words order

Paul Koning pkoning@equallogic.com
Fri Aug 23 07:10:00 GMT 2002


>>>>> "Richard" == Richard Earnshaw <rearnsha@arm.com> writes:

 >> OK, thanks.  I was actually thinking of the word-order of
 >> floating-point numbers not that of integral types.  I think I
 >> should name it __TARGET_FLOAT_WORDS_ORDER__ ?  Is it reasonable to
 >> assume that the byte order of integral and floating point
 >> coincide?

 Richard> I'm not aware of any machines where the byte ordering
 Richard> doesn't match that for integers -- at least in the sense
 Richard> that the 'sign bit' of a floating point number lives in the
 Richard> 'most significant' byte of a word, etc. 

The VAX is an example.  Integer sign bit is bit 31, float sign bit is
bit 15. 

    paul



More information about the Gcc mailing list