Hi,
I would like to know where is the macro "_LITTLE_ENDIAN" defined in compiler files. I'm trying to compile a project in CCS6 using compiler armv5.1.6 and I always see that #if defined(_LITTLE_ENDIAN) is satisfied.
Regards,
Vishwanath Reddy.
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Hi,
I would like to know where is the macro "_LITTLE_ENDIAN" defined in compiler files. I'm trying to compile a project in CCS6 using compiler armv5.1.6 and I always see that #if defined(_LITTLE_ENDIAN) is satisfied.
Regards,
Vishwanath Reddy.
This macro is predefined in the compiler. The list of predefined macros can be found in the Compiler Users Guide for the processor family you are working with. For example, for C6000 they are listed in section 2.5.1 of this Users Guide.
CCS also automatically extracts all the predefined macros from the compiler. If you select "Show advanced properties" under the CCS Project Properties, then C/C++ General -> Paths and Symbols shows the predefined macros on the Symbols tab. e.g.:AartiG said:The list of predefined macros can be found in the Compiler Users Guide for the processor family you are working with.
[The compiler predefined macros are shown in a normal font, and any macros defined by the CCS project are shown in bold.]
Hi,
I got it. Based on the macro __little_endian__ defined in CCS, F021 API defines _LITTLE_ENDIAN macro.
Regards,
Vishwanath Reddy.