CMPVER
9.1E
The CMPVER compiler directive reports the compiler version value that is created for a specified string. The directive uses the following formats:
|
|
|
Where:
verid
Required. A special formatted string that identifies the compiler version used to calculate the version value.
Flags Affected: NONE
Note the following:
The S$CMPVER$ compiler directive is a special compiler directive that represents the current compiler version that is being used when a program is compiled.
The CMPVER compiler directive requires an input string that is processed to give the expected EQU value that gives the expected numeric value for any compiler version.
Since the S$CMPVER$ and CMPVER directive values are represented as equated values, any given value cannot be larger than 0xFFFF.
The S$CMPVER$ and CMPVER compiler directives are calculated by the compiler as follows:
Compiler Version: 'MNP'
Where:
Using the 'MNP' format, the compiler version is calculated by the following expression:
VERVALUE = ( ( ( ( M * 16 ) + N ) * 256 ) + P )
CMPVER(91) --> VERVALUE = 0x9100
CMPVER(91E) --> VERVALUE = 0x910E
CMPVER(91F) --> VERVALUE = 0x910F
CMPVER(91G) --> VERVALUE = 0x9110
CMPVER(91Z) --> VERVALUE = 0x9123
Examples:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
See Also: Compiler Directives
![]() |