3.4.1. Determining the armasm version at assembly time

You can use the built-in variable {ARMASM$VERSION} to distinguish between versions of armasm. However, previous (SDT) versions of armasm did not have this built-in variable.

If you have to build both RVCT and SDT versions of your code, you can test for the built-in variable |ads$version|. Use code similar to the following:

    IF :DEF: |ads$version|
      ; code for RVCT or ADS
    ELSE
      ; code for SDT
    ENDIF
Copyright © 2002-2005 ARM Limited. All rights reserved.ARM DUI 0204F
Non-Confidential