Assembler equivalence of constants

Language reference ›› Constants ››
Parent Previous Next

Internally, all constants are prefixed by the module name (program or unit) as:

<program-or-unit-name>.<constant-name>.

Constants declared in a procedure or function declaration are internally prefixed with the procedure or function name too, as:

<program-or-unit-name>.<procedure-or-function-name>.<constant-name>

and they cannot be accessed outside.

Internal representation of symbols may be squeezed by a special algorithm to fit the 32 characters limitation of MPASM.