HP-UX Reference (11i v2 03/08) - 1 User Commands A-M (vol 1)
c
cc_bundled(1) cc_bundled(1)
(Bundled C Compiler - Limited Functionality)
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.
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 can-
not 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 com-
ponents 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
dependent 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 -b on Itanium-based systems
file.sl shared library, created with -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)
HP-UX 11i Version 2: August 2003 − 4 − Hewlett-Packard Company Section 1−−65