VRAL directives can be used only within the procedure, between the directives .proc and .endp. The variables declared by the directives are valid from their declaration till the end of the procedure or until they are undefined or redefined.
Use the following syntax to undefine variables, so the variable names can be used again within the procedure:
.vreg.undef Xcounter
Use the following syntax to redefine variables, with no need for undefining. Notice there is no opportunity to specify a different family:
.vreg.redef Xcounter
An example of the Virtual Registers Allocation (VRAL) directives usage is shown as follows.
Virtual Registers Allocation Example |
.proc foo |