C/C++ Programmer's Guide (G06.27+, H06.03+)

Table Of Contents
Compiler Pragmas
HP C/C++ Programmer’s Guide for NonStop Systems429301-010
13-56
LINES
Usage Guidelines
On Guardian environment, the LD pragma must be entered on the compiler RUN
command line for TNS/R native C/C++. On OSS environment, specify the LD
pragma by using the -Wld=arg option with the c89 utility.
If you are linking non-PIC files, you must use the NLD(arg) pragma, which
specifies arguments to the TNS/R native non-PIC linker, the nld utility.
The LD pragma does not actually invoke the ld linker. To invoke ld, you must
include other pragmas such as RUNNABLE, SHARED or LINKFILE. If ld is not
invoked, this pragma is ignored.
When you specify the LD pragma, you cannot also specify NLD(arg) or
NON_SHARED.
This TNS/R native C command example shows the LD pragma. Note that if you
specify SHARED, you would not need to also include RUNNABLE:
nmc /in prog1/ prog1o;ld(-set highpin off -set highrequester
off),call_shared, runnable
LINES
The LINES pragma specifies the maximum number of output lines per page for the
compiler listing file.
lines_per_page
specifies the maximum number of text lines per page for the listing file.
lines_per_page must be an integer in the range 10 through 32767.
The pragma default settings are:
Usage Guideline
For native C and C++. the LINES pragma must be entered on the compiler RUN
command line. For OSS, the LINES pragma can be specified with the -Wlines flag of
the c89 utility.
LINES lines_per_page
SYSTYPE GUARDIAN SYSTYPE OSS
TNS C compiler LINES 60 LINES 60
G-series TNS c89 utility LINES 60 LINES 60
TNS/R native C and C++ compilers LINES 60 LINES 60
Native c89 utility LINES 66 LINES 66
TNS/E native C and C++ compilers LINES 60 LINES 60