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-14
COLUMNS
The pragma default settings are:
Usage Guidelines
In the Guardian environment, the CHECK pragma must be entered on the compiler
RUN command line. In the OSS environment, the CHECK pragma must be
entered in the source file.
If one of the run-time checks controlled by the CHECK pragma discovers an
inconsistency, it prints a stack trace to the standard error file and terminates
program execution.
The run-time checks diagnose several inconsistencies, including:
°
Attempted conversion of a byte pointer to a word pointer when the byte pointer
points to an odd byte address
°
Attempted conversion of a 32-bit pointer to a 16-bit pointer when the 32-bit
pointer points to an address in extended memory
°
Library calls that do not specify valid values for arguments
The run-time checks provided by the CHECK pragma can slow the execution of
your program. Consequently, you should use CHECK only when developing and
debugging your program.
The native C and C++ compilers do not support these pragmas. The native C run-
time library does not provide the additional parameter checking provided by the
TNS C run-time library.
COLUMNS
The COLUMNS pragma specifies the maximum logical line length of the source file.
last-column
specifies the last column in a source line to process. The compiler ignores any text
in the line beyond this column. last-column must be in the range 20 through
32767.
SYSTYPE GUARDIAN SYSTYPE OSS
TNS C compiler CHECK NOCHECK
G-series TNS c89 utility CHECK NOCHECK
TNS/R native C and C++ compilers N.A. N.A.
Native c89 utility N.A. N.A.
TNS/E native C and C++ compilers N.A. N.A.
COLUMNS last-column