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)
Pointers
Accessing the object of a NULL (zero) pointer is technically illegal, but many systems have permitted it in
the past. The following is provided to maximize portability of code. If the hardware is able to return zero
for reads of location zero (when accessing at least 8- and 16-bit quantities), it must do so unless the
-z flag
is present. The
-z flag requests that
SIGSEGV be generated if an access to location zero is attempted.
Writes of location zero may be detected as errors even if reads are not. If the hardware cannot assure that
location zero acts as if it was initialized to zero or is locked at zero, the hardware should act as if the
-z
flag is always set.
EXTERNAL INFLUENCES
Environment Variables
LANG determines the language in which messages are displayed.
If LC_CTYPE is not specified in the environment or is set to the empty string, the value of
LANG is used as
a default for each unspecified or empty variable. If
LANG is not specified or is set to the empty string, a
default of
C (see lang(5)) is used instead of
LANG. If any internationalization variable contains an invalid
setting,
C behaves as if all internationalization variables are set to
C. See environ(5).
aCC_MAXERR allows you to set the maximum number of errors you want the compiler to report before it
terminates compilation. (Itanium-based systems only).
SDKROOT is used as a prefix for all references to tool set components and must be set when you use a non-
native development kit or a toolset installed at an alternative location. Some of the toolset components are
compiler drivers, Compiler Applications, Preprocessor, Linker, and object file tools.
TARGETROOT is used as a prefix for all references to target set components and must also be set when
using a non-native development kit. Some of the target set components are header files, archive libraries,
and shared libraries.
International Code Set Support
Single byte and multibyte character code sets are supported.
DIAGNOSTICS
The diagnostics produced by the compiler itself are intended to be self-explanatory. Occasional messages
may be produced by the assembler or the link editor.
If any errors occur before cc is completed, a non-zero value is returned. Otherwise, zero is returned.
DEPENDENCIES
If -s is specified along with any of the above options, the -s option is ignored, regardless of the order in
which the options were specified.
Refer to the System Dependent Options subsection above for information about operating system depen-
dent options,
+DDdata_model for 32-bit or 64-bit data models and +DSmodel for the instruction scheduler.
FILES
file.c C input file
file.i previously preprocessed cc input file
file.o object file
file.so shared library, created with ld -b on Itanium-based systems
file.sl shared library, created with ld -b on PA-RISC
a.out linked executable output file
/var/tmp/* temporary files used by the compiler (Itanium-based systems)
/var/tmp/ctm* temporary files used by the compiler (PA-RISC systems)
/usr/ccs/bin/cc Cdriver
/usr/ccs/bin/cc_bundled Cdriver
/usr/ccs/lbin/ctcom C Compiler (Itanium-based systems)
/usr/ccs/lbin/ccom C Compiler (PA-RISC systems)
118 Hewlett-Packard Company − 4 − HP-UX 11i Version 2: December 2007 Update