SPRUI03E June 2015 – January 2023
Assign a Variable to a Register
.map symbol1 / register1[, symbol2 /register2 , ...]
.clearmap
The .map directive is used by the compiler when the input is linear assembly. The compiler tries to keep your symbolic names for registers defined with .reg by creating substitution symbols with .map.
The .map directive is similar to .asg, but uses a forward slash instead of a comma; and allows single quote characters in the symbolic names. For example, this linear assembly input:
The .clearmap directive is used by the compiler to undefine all current .map substitution symbols.
See the TMS320C6000 Optimizing Compiler User's Guide for details on using the .map directive in linear assembly code.
The .map directive is similar to .asg, but uses a forward slash instead of a comma; and allows single quote characters in the symbolic names. For example, this linear assembly input:
fn: .cproc a, b, c
.reg x, y, z
ADD a, b, z
ADD z, c, z
.return z
.endproc
Becomes this assembly code output:
fn:
.map a/A4
.map b/B4
.map c/A6
.map z/A4
.map z'/A3
RET .S2 B3
ADD .L1X a,b,z'
ADD .L1 z',c,z
NOP 3