Experimental Physics and
| |||||||||||||||||
|
Most operating systems nowadays already /have/ header files for providing byte order information to compiled code. Personally I think we should be using these in libCom/osi/os files rather than defining our own: On Linux, <endian.h> defines __BYTE_ORDER to be one of __LITTLE_ENDIAN, __BIG_ENDIAN or __PDP_ENDIAN, and similarly defines __FLOAT_WORD_ORDER since that is needed for the ARM Netwinder FP library. On vxWorks, <vxWorks.h> includes <types/vxArch.h> which defines _BYTE_ORDER to be one of _BIG_ENDIAN or _LITTLE_ENDIAN On Solaris, <sys/isa_defs.h> defines one or other of the macros _LITTLE_ENDIAN or _BIG_ENDIAN. I don't know whether Windows has anything equivalent, but I'm not sure that it runs on any big endian architectures anyway so it may not need one. If we make any more significant changes in this area it should be to using the above OS-defined macros, which should fix this problem once and for all. - Andrew -- When a distinguished but elderly scientist states that something is possible, he is almost certainly right. When he states that something is impossible, he is very probably wrong. -- Arthur C. Clarke
| ||||||||||||||||
ANJ, 10 Nov 2011 |
·
Home
·
News
·
About
·
Base
·
Modules
·
Extensions
·
Distributions
·
Download
·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing · |