HP C/iX Reference Manual (31506-90011)
116 Chapter8
Compiling and Running HP C/iX Programs
HP C/iX Compiler Options
HP C/iX Compiler Options
You can pass options to the HP C/iX compiler in the INFO parameter of the CCXL,
CCXLLK, and CCXLGO commands, or using the INFO parameter of the RUN command, if
you invoke the compiler using CCOMXL.PUB.SYS. You must separate options with a
blank. Any string of characters not separated with a blank is considered a single option.
For example, -Wc,-r is considered one option with -r as an argument to the option; it
inhibits the promotion of float to double. In addition, note that the case of the options
is
significant.
The following options are available:
Option Description
-A level where level can be a or c.
a Requests a compilation on ANSI C mode. By using the -Aa option, you are
requesting a strict implementation of ANSI C. ANSI C specifies which names are
available in the standard libraries and headers, which are reserved for the
implementation, and which must be left available for the user. HP C/iX in ANSI
mode conforms to these restrictions, and only names permitted by ANSI C are
defined or declared in the standard libraries and headers. However, if you want to
compile using ANSI mode but want the naming restriction relaxed, you can
include the following line in the start of your source before including any header
files:
#define _MPEXL_SOURCE
This will allow you to gain access to names that are legal in non-ANSI mode.
c This is a non-ANSI implementation and the default compilation mode.
-C Prevents the preprocessing phase from stripping C comments.
-D
name
-d
[name=de
f]
Defines
name
to the preprocessing phase as if defined using the#define directive.
If the definition is not given,
name
is defined as 1.
-E Only runs the preprocessing phase on the input file and sends the result to
$STDLIST. When you use this option, object file and listing file specifications are
ignored.
-g Causes the compiler to generate additional information needed by the Symbolic
Debugger. This option is incompatible with optimization.
-I
group[.a
cct]
Changes the search algorithm used by the preprocessing phase for finding
#include files. For additional information, see chapter 7.
-O Invokes the optimizer to perform all optimizations. This option is not compatible
with symbolic debugging. Refer to the HP C Programmer's Guide for details on
optimization.