Andes Workshop

It is currently Sat Dec 14, 2019 7:28 am

All times are UTC + 8 hours [ DST ]




Post new topic Reply to topic  [ 1 post ] 
Author Message
 Post subject: Andes Predefined Macros
PostPosted: Wed Apr 02, 2014 7:19 pm 
Offline
User avatar

Joined: Fri Mar 04, 2011 9:36 pm
Posts: 500
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


Top
 Profile Send private message E-mail  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 1 post ] 

All times are UTC + 8 hours [ DST ]


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group