TAL Reference Manual
Privileged Procedures
TAL Reference Manual—526371-001
15-14
Usage Considerations
Usage Considerations
You can specify TARGET in the compilation command or anywhere in the source code
any number of times. Do not, however, specify both TARGET TNS_ARCH and
TARGET TNS_R_ARCH in the same compilation unit.
You can use TARGET to source in system-specific blocks of declarations from library
files, such as operating system declaration files.
TARGET ANY Directive
A TARGET ANY can follow (and inherit the attributes of) a TARGET TNS_ARCH or
TARGET TNS_R_ARCH. If either IF TNS_ARCH or IF TNS_R_ARCH follows a
TARGET ANY, however, the compiler issues a warning and does not compile the
corresponding system-specific conditional code.
If TARGET ANY is in effect, the compiler:
•
Compiles the code between IF ANY and ENDIF ANY
•
Skips the code between IFNOT ANY and ENDIF ANY
If TARGET ANY is not in effect, the compiler:
•
Compiles the code between IFNOT ANY and ENDIF ANY
•
Skips the code between IF ANY and ENDIF ANY
TARGET TNS_ARCH Directive
If TARGET TNS_ARCH is in effect, the compiler:
•
Compiles the code between IF TNS_ARCH and ENDIF TNS_ARCH
•
Skips the code between IFNOT TNS_ARCH and ENDIF TNS_ARCH
If TARGET TNS_ARCH is not in effect, the compiler:
•
Compiles the code between IFNOT TNS_ARCH and ENDIF TNS_ARCH
•
Skips the code between IF TNS_ARCH and ENDIF TNS_ARCH
TARGET TNS_R_ARCH Directive
If TARGET TNS_R_ARCH is in effect, the compiler:
•
Compiles the code between IF TNS_R_ARCH and ENDIF TNS_R_ARCH
•
Skips the code between IFNOT TNS_R_ARCH and ENDIF TNS_R_ARCH
If TARGET TNS_R_ARCH is not in effect, the compiler:
•
Compiles the code between IFNOT TNS_R_ARCH and ENDIF TNS_R_ARCH
•
Skips the code between IF TNS_R_ARCH and ENDIF TNS_R_ARCH