| |||
| Home > Assembler Reference > Built-in variables and constants > Detecting versions of armasm | |||
You can use the built-in variable {ARMASM_VERSION} to
distinguish between versions of armasm. The
format of the version number is PVtbbbb where:
is the major version
is the minor version
is the patch release
is the build number
The ARM assembler did not have the built-in variable |ads$version| before
ADS and RVCT. If you have to build versions of your code for legacy
development tools, you can test for the built-in variable |ads$version|.
Use code similar to the following:
IF :DEF: |ads$version|
; code for RealView or ADS
ELSE
; code for SDT
ENDIF