IAR中的参数变量表

在IAR中的help中输入argument variables时会找到这样的一个列表:

  

Argument variables
On many of the pages in the Options dialog box, you can use argument variables for paths and arguments:
 
 
Variable
Description
$CONFIG_NAME$
The name of the current build configuration, for example Debug or Release. 
$CUR_DIR$
Current directory    //当前目录  
$CUR_LINE$
Current line          //当前行
$DATE$
Today’s date        
$EW_DIR$
Top directory of IAR Embedded Workbench, for example c:\program files\iar systems\embedded workbench 6.n //EW的安装目录
$EXE_DIR$
Directory for executable output                //可执行文件的输出目录
$FILE_BNAME$
Filename without extension                    //无扩展名文件
$FILE_BPATH$
Full path without extension                    //无扩展名全部路径
$FILE_DIR$
Directory of active file, no filename         //当前活动文件目录,不包含文件名
$FILE_FNAME$
Filename of active file without path         //当前活动文件,不包含路径
$FILE_PATH$
Full path of active file (in Editor, Project, or Message window)  //当前活动文件的完整路径
$LIST_DIR$
Directory for list output                         //列表文件的输出路径
$OBJ_DIR$
Directory for object output                    //目标文件输出路径
$PROJ_DIR$
Project directory                                  //工程目录
$PROJ_FNAME$
Project filename without path                //工程名称  不包含路径
$PROJ_PATH$
Full path of project file                         //工程文件的完整路径
$TARGET_DIR$
Directory of primary output file             //主输出文件路径
$TARGET_BNAME$
Filename without path of primary output file and without extension     //无主输出文件目录,无扩展名的文件名
$TARGET_BPATH$
Full path of primary output file without extension      //无扩展名的主输出文件的完整路径
$TARGET_FNAME$
Filename without path of primary output file            //无路径的主输出文件名
$TARGET_PATH$
Full path of primary output file                              //主输出文件的完整路径
$TOOLKIT_DIR$
Directory of the active product, for example c:\program files\iar systems\embedded workbench 6.n\arm   //已激活的开发环境的目录
$USER_NAME$
Your host login name
$_ENVVAR_$
The environment variable ENVVAR. Any name within $_ and _$ will be expanded to that system environment variable.
 
Argument variables can also be used on some pages in the IDE Options dialog box, see Tools menu
 
 
当对项目进行配置时,要利用上面的一些参数变量进行相应的设置。  从而可以避免当工程移到其他的电脑上的时候出现路径的错误而采用相对路径
 
 
 
 
 
 
 
 
 

posted on 2013-05-01 09:24  展翅的小鸟  阅读(932)  评论(0编辑  收藏  举报

导航