Please refer to programming guide 9.4. 9.4. Andes Predefined Macros To see the default values of Andes macros for a particular toolchain or to check if a feature is enabled as default, issue the following command: echo "" | nds32*-elf-cpp -E -dM | grep NDS32
hylai@ubuntu:~/Andestech/BSPv320/toolchains/nds32le-elf-mculib-v3m/bin$ echo " " |./nds32le-elf-cpp -E -dM | grep NDS32 #define NDS32_ABI_2 1 #define __NDS32__ 1 #define __NDS32_BASELINE_V3M 1 #define NDS32_FIRST_PSEUDO_REGISTER 136 #define NDS32_EL 1 #define __NDS32_EL 1 #define __NDS32_REDUCE_REGS 1 #define __NDS32_ABI_2__ 1 #define __NDS32_REDUCE_REGS__ 1 #define __NDS32_ABI_2 1 #define __NDS32_BASELINE_V3M__ 1 #define NDS32_BASELINE_V3M 1 #define __NDS32_EL__ 1 #define NDS32_REDUCE_REGS 1 hylai@ubuntu:~/Andestech/BSPv320/toolchains/nds32le-elf-mculib-v3m/bin$
For example, NDS32_DX_REGS Defined if using baseline V2 toolchain with -mdx-regs specified or enabled as default
|