HP C/iX Reference Manual (31506-90011)
118 Chapter8
Compiling and Running HP C/iX Programs
HP C/iX Compiler Options
The preprocessor phase supports the aforementioned -C, -D,
-I, and -U options, as well as the following:
-H
n
Changes the internal macro definition table to be
n
bytes in size. The
macro symbol table is increased proportionally. You should specify a value
greater than the 128000 byte default. Use this option when the
preprocessing phase issues a "too many defines" or "too much defining"
message.
-P Processes the input without producing the line control information used by
the next pass of the compiler.
-T Forces the preprocessor to use only the first eight characters in
distinguishing different preprocessor names (included for backward
compatibility to other systems).
Examples
CCXL MYTEXT;INFO="-Ddebug -Wc,-r -O"
This example compiles MYTEXT with debug defined as 1 (-Ddebug), inhibits promotion of
float expressions to double (-Wc,-r), and enables all possible optimizations (-O).
CCXL MYTEXT,CPPOUT;INFO="-P -C -Ddebug"
-O
opt
Invokes optimizations selected by
opt
. If
opt
is 1, only level 1 optimizations are
performed. If
opt
is 2, all optimizations are performed. The option +02 is the same
as -O.
-R
num
Only allows the first
num
'register' variables to actually have the 'register' class.
Use this option when the register allocator issues an "out of general registers"
message.
-r Inhibits the automatic promotion of float to double in evaluating expressions and
passing arguments (-r is invalid in ANSI mode).
-u Forces the compiler to generate code to access pointers with half-word addressing.
You should only use this option when you cannot guarantee that pointers will
always reference word-aligned items. See "Pointers to Half-Word Aligned Data
Items" in chapter 9 for more information.
-w
n
Specifies the level of the warning messages;
n
can be one of the following values:
Value Description
1 All warnings are issued.
2 Only warnings indicating that code generation might be affected are issued; equivalent
to the compiler default without any
w
options.
3 No warnings are issued.
Argument Description