CODE [ HP Pascal/iX Reference Manual ] MPE/iX 5.0 Documentation
HP Pascal/iX Reference Manual
CODE
CODE is an HP Pascal Option.
When the CODE compiler option is ON, the compiler generates object code
after parsing a compilation block.
The command line option -C also specifies this option.
Syntax
$CODE {ON }$
{OFF}
Default ON
Location Anywhere, but it affects only the procedure, function, or
outer block that contains it.
The CODE option affects an entire procedure, function, or outer block.
To suppress the object code for smaller portions of source code, use the
SKIP_TEXT option, or enclose that portion of source code in comment
symbols.
Example
The compiler generates no object code for proc2. Although $CODE OFF$ is
in the middle of proc2, it affects the entire procedure.
PROGRAM show_code;
PROCEDURE proc1;
BEGIN
:
END;
PROCEDURE proc2;
BEGIN
:
$CODE OFF$
:
END;
$CODE ON$
BEGIN
:
END.
MPE/iX 5.0 Documentation