pTAL Reference Manual (H06.03+)
Compiler Directives
HP pTAL Reference Manual—523746-005
17-65
SYNTAX
Usually you save symbols for the entire compilation by specifying SYMBOLS once at
the beginning of the compilation unit. The symbol table then contains all the symbols
generated by the source code.
After debugging the program, you can use the linker to create a new, smaller object file
without symbols. The executable portion of the old object file remains intact, but you
dramatically reduce what you can do with a symbolic debugger.
nld -x -r oldobj -o newobj
ld -x -r oldobj -o newobj
eld -x -r oldobj -o newobj
Use the linker option -s when linking a loadfile
, or use the strip utility after creating
the loadfile.
STRIP oldobj
SYNTAX
SYNTAX checks the syntax of the source text without producing an object file.
Default: NOSYMBOLS
Placement: Before the first declaration in the compilation
Scope: The last legally placed SYMBOLS or NOSYMBOLS applies to the
compilation unit
Dependencies: Interacts with SAVEGLOBALS and USEGLOBALS (see Saving Global
Data Declarations on page 17-9)
References:
•
SAVEGLOBALS on page 17-54
•
USEGLOBALS on page 17-67
Note. These linker options discard information that SYMBOLS saves:
•
-x discards line number information.
•
-s discards information needed for future linking (use it only in building an executable file).
Example 17-37. SYMBOLS Directive
! MYSOURCE file
?SYMBOLS ! Save symbols for compilation unit
! Declare global data
! Declare procedures
SYNTAX
VST178.vsd










