Reference Guide
90 Chapter 4
Assembler Directives and Pseudo-Operations
.IMPORT Directive
.IMPORT Directive
The .IMPORT directive allows symbols to be defined in one program but
used in other programs.
Syntax
.IMPORT symbol [ , type] [ , TSPECIFIC]
Parameters
symbol The name of an identifier whose definition is being
imported.
type A linker symbol type that can take one of the following
values:
ABSOLUTE Designates an absolute symbol.
DATA Designates a data symbol.
CODE Designates a code location. The
location can not be a procedure entry.
ENTRY Designates the entry point of a
procedure.
MILLICODE Locates code for the entry point of a
millicode routine.
MILLI_EXT Locates code for the entry point of an
external millicode routine.
PLABEL Locates a pointer to a procedure.
PRI_PROG Designates the primary program
entry point. The outer block of HP
Pascal/HP-UX and the main
program in HP FORTRAN 77/HP-UX
are type PRI_PROG.
SEC_PROG Designates a secondary program
entry point.