Experimental Physics and
| |||||||||||||||||
|
Please consider incorporating something like the following in "motor.h", and do away with the #cpu(xxx) notation (which triggers _a lot_ of compiler warning/noise): /* Define, from top to bottom, how bit fields are packed. */ /* This works for gnu, SunPro, MS Visual C. */ #if defined(_WIN32) || defined (_M_IX86) || defined (_X86_) #define LSB_First (TRUE) /* LSB is packed first. */
#elif defined (__i386__) || defined(_armv4l_) || defined (_X86_64_) || defined(__ARMEL__) #define LSB_First (TRUE) /* LSB is packed first. */ #elif defined(__sparc__) || defined(__m68k__) || defined (__PPC__) || defined(__ARMEB__)
#define MSB_First (TRUE) /* MSB is packed first. */ #else #error unknown bit order! #endif IIRC, the compiler for vxWorks is gnu-based, so you should be able get a list of compiler-provided preprocessor definitions like this: djc@TooLBox--> touch /tmp/foo.c djc@TooLBox--> gcc -E -dM /tmp/foo.c | less
Thanks. -- dc On Mon, Oct 11, 2010 at 3:17 PM, Ron Sluiter <[email protected]> wrote:
| ||||||||||||||||
ANJ, 12 Oct 2010 |
·
Home
·
News
·
About
·
Base
·
Modules
·
Extensions
·
Distributions
·
Download
·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing · |