Is there Predefined-Macros define about byte order in armcc

485 views Asked by At

Is there Predefined-Macros define about byte order in armcc.

I am a novice on the armcc.and sorry for my English.

In gcc these are macros: __BYTE_ORDER__ __ORDER_LITTLE_ENDIAN__ __ORDER_BIG_ENDIAN__ __ORDER_PDP_ENDIAN__ ...

Now I have to use armcc, Is there same like these with armcc?

Thank a lot.

by the way,the armcc version:

ARM C/C++ Compiler, 4.1 [Build 713]
1

There are 1 answers

2
Brian Sidebotham On BEST ANSWER

Well according to this page: http://www.keil.com/support/man/docs/armccref/armccref_BABJFEFG.htm

You have __BIG_ENDIAN which is defined when compiling for a big endian target.