HP-UX Reference (11i v3 07/02) - 1 User Commands A-M (vol 1)
c
cc_bundled(1) cc_bundled(1)
(Bundled C Compiler - Limited Functionality)
-b
Cause the linker, ld, to create a shared library rather than a normal executable file. For
details see ld(1), HP-UX Linker and Libraries Online User’s Guide and the Programming
on HP-UX manual.
-c Suppress the link edit phase of the compilation, and force an object (
.o) file to be produced
for each
.c or .i file even if only one program is compiled. Object files produced from C
programs must be linked before being executed.
-Dname=def
-Dname Define name to the preprocessor pass (of
ctcom), as if by ’#define’.
-E Preprocess named C files and send the result to standard output.
-.suffix Instead of using standard output for the
-E option, place the output from each .c file into
a file with the corresponding .suffix.
-Idir Change the algorithm used by the preprocessor pass for finding include files to also search
in directory dir. See the HP C Online Help.
-I- The directory of the including file is no longer used as the starting point to look up files
enclosed with double quotes ( They start at the first -I. Files enclosed with <>
are looked
up with the paths following
-I-.
-lx Refer to the -lx and -l:libx.suffix explanations (fourth and fifth items) in the
DESCRIPTION section.
-L dir Change the algorithm used by the linker to search for libx.so (Itanium-based systems)
or
libx.sl (PA-RISC) or libx.a
. The -L option causes ld to search in dir before
searching in the default locations. This option is effective only if it precedes the
-l option
on the command line. See ld(1) for details.
-ooutfile Specify outfile as the name for the linker output file. The default name is
a.out.
Specifies the name of the shared library when used with
-b. Specifies the name of the
object file when used with -c.
-P Preprocess named C files and leave the result in corresponding files suffixed with
.i.
-s Cause the output of the linker to be stripped of symbol table information. See strip(1) for
more details. The use of this option prevents the use of a symbolic debugger on the result-
ing program. Also see ld(1) for additional details.
If
-s is specified with any other option, the -s option is ignored, regardless of the order in
which the options were specified.
-S Compile the named C files, and leave the assembly language output in corresponding files
suffixed with .s.
-tx,name Substitute or insert subprocess x with name where x is one or more of a set of identifiers
indicating the subprocess(es). This option works in two modes: 1) if x is a single identifier,
name represents the full path name of the new subprocess; 2) if x is a set of identifiers,
name represents a prefix to which the standard suffixes are concatenated to construct the
full path names of the new subprocesses.
The x can take one or more of the values:
a Assembler; standard suffix is as
c
Compiler body; standard suffix is:
ecom (Itanium-based systems), or
ccom (PA-RISC)
l Linker; standard suffix is ld
p
C preprocessor; standard suffix is cpp
x
All subprocesses.
-Uname Undefines any name that has been defined prior to the preprocessing stage of compilation.
-v Enable verbose mode, which produces a step-by-step description of the compilation process
on standard error.
-V Display the version numbers of the current compiler and linker (if the linker is executed).
HP-UX 11i Version 3: February 2007 − 2 − Hewlett-Packard Company 95