arm7汇编中怎么使用c中的变量_MDK-ARM armasm汇编器——内建变量和常量.pdf

MDK-ARM armasm汇编器——内建变量和常量

Assembler User Guide: Built-in variables and constants Page 1 of 5

Built-in variables and constants

Table 19 lists the built-in variables defined by the assembler.

Table 19. Built-in variables

{ARCHITECTURE} Holds the name of the selected ARM architecture.

{AREANAME} Holds the name of the current AREA.

{ARMASM_VERSION} Holds an integer that increases with each version of armasm. The

format of the version number is PVVbbbb where:

P

is the major version

VV

is the minor version

bbbb

is the build number.

|ads$version| Has the same value as {ARMASM_VERSION}.

{CODESIZE} Is a synonym for {CONFIG}.

{COMMANDLINE} Holds the contents of the command line.

{CONFIG} Has the value 32 if the assembler is assembling ARM code, or 16 if it

is assembling Thumb code.

{CPU} Holds the name of the selected CPU. The default is “ARM7TDMI”. If

an architecture was specified in the command line --cpu option,

{CPU} holds the value "Generic ARM".

{ENDIAN} Has the value “big” if the assembler is in big-endian mode, or

“little” if it is in little-endian mode.

{FPIC} Has the boolean value True if /fpic is set. The default is False.

{FPU} Holds the name of the selected FPU. The default is “SoftVFP”.

{INPUTFILE} Holds the name of the current source file.

{INTER} Has the boolean value True if /inter is set. The default is False.

{LINENUM} Holds an integer indicating the line number in the current source

file.

{LINENUMUP}

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值