[PATCH v2] score: PR1607: Add and use CPU_SIZEOF_POINTER

Sebastian Huber sebastian.huber at embedded-brains.de
Mon Nov 5 09:17:15 UTC 2012


This is the second version of the patch.  The pointer size varies only on the
h8300 and m32c target per multi lib.  This should be fixed now since I can
build all h8300 and m32c BSPs.  The H8300SX support seems to be broken.

I added also a new static assert:

#ifdef __SIZEOF_POINTER__
  RTEMS_STATIC_ASSERT(
    CPU_SIZEOF_POINTER == __SIZEOF_POINTER__,
    __SIZEOF_POINTER__
  );
#endif

An alternative is to use and hope that the compiler provides this define:

#define CPU_SIZEOF_POINTER __SIZEOF_POINTER__



More information about the devel mailing list