HP-UX Reference (11i v2 07/12) - 1 User Commands A-M (vol 1)
c
cc_bundled(1) cc_bundled(1)
(Bundled C Compiler - Limited Functionality)
Itanium-based Systems Only Options
-.suffix Instead of using standard output for the
-E option, place the output from each .c file into
a file with the corresponding .suffix.
-z Do not bind anything to address zero. This ld(1) option allows run-time detection of null
pointers. See the note on pointers below. (Itanium-based system only)
+dryrun Generate subprocess information for a given command line without running the sub-
processes. (Itanium-based systems only)
+m[d] This option outputs the double quoted ("") enclosed include file dependency information in
the format for make(1). With +m
the output goes to stdout. With +md the output goes to a
file with the suffix
.d
. The directory and prefix of this file is the same as the object file,
which can be affected by the
-o option.
NOTE: Specify
-E to suppress generation of the object file. In this case, no preprocessor
output is generated. (Itanium-based systems only).
+M[d] Same as +m
except both <> and "" enclosed include files are output as dependencies.
(Itanium-based systems only).
+p Disallow all anachronistic constructs. Ordinarily the compiler gives warnings about
anachronistic constructs; using the
+p option, the compiler will not compile code containing
anachronistic constructs. (Itanium-based systems only).
+time Generate separate timing information for compilation subprocesses. For each subprocess,
estimated time is generated in seconds for user processes, system calls, and total processing
time. (Itanium-based systems only).
+uc Treats "plain" char data type as unsigned char. (Overloading and mangling are
unchanged.) This option is to help in porting applications from environments where
unqualified (plain) char type is treated as unsigned char instead of the default treatment as
signed char. Since all unqualified char types in the compilation unit will be affected by this
option (including those headers that define external and system interfaces) it is necessary
to compile the interfaces used in a single program uniformly.
+w Warn about all questionable constructs. Without the +w option, the compiler issues warn-
ings only about constructs that are almost certainly problems (Itanium-based systems only).
+Warg1[,arg2,...,argn]
Selectively suppresses any specified warning messages, where arg1 through argn are valid
compiler warning message numbers. (Itanium-based systems only).
+Wearg1[,arg2,...,argn]
Selectively interpret any specified warning or future error messages as errors. arg1
through argn are valid compiler message numbers. (Itanium-based systems only).
System Dependent Options
The compiler supports the following additional operating system dependent options.
+DDdata_model
Generate code using either the ILP32 or LP64 data model. Defined values for data_model are:
32 Use the ILP32 data model. The sizes of the int, long and pointer data types are 32-bits.
64 Use the LP64 data model. The size of the int data type is 32-bits, and the sizes of the long and
pointer data types are 64-bits. Defines __LP64__ to the preprocessor.
+DSmodel
Use the instruction scheduler tuned to the model specified. If this option is not used, the compiler
uses the instruction scheduler for the architecture on which the program is compiled.
Options (other)
Any other options that are not defined will generate a warning to standard error.
Other arguments are taken to be HP C compatible object files, typically produced by an earlier cc run, or
perhaps libraries of HP cc compatible routines. These files, together with the results of any compilations
specified, are linked (in the order given) to produce an executable program with the name a.out.
HP-UX 11i Version 2: December 2007 Update − 3 − Hewlett-Packard Company 117