Command Reference Guide

__________________________________________________________________________________________________________________________________________________________________________________________________
__________________________________________________________________________________________________________________________________________________________________________________________________
STANDARD Printed by: Nora Chuang [nchuang] STANDARD
/build/1111/BRICK/man1/!!!intro.1
________________________________________________________________
___ ___
c
cc_bundled(1) cc_bundled(1)
(Bundled C Compiler - Limited Functionality)
name a.out.
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. If any internationalization variable contains an invalid setting, cc
behaves as if all internationalization variables are set to C. See environ(5).
International Code Set Support
Single byte and multibyte character code sets are supported.
DIAGNOSTICS
The diagnostics produced by C itself are intended to be self-explanatory. Occasionally, messages may be
produced by the preprocessor, assembler, or the link editor.
If any errors occur before cc is completed, a nonzero value is returned. Otherwise, zero is returned.
EXAMPLES
The example below compiles the C file
prog.c to create a prog.o file, then invokes the
ld link editor to
link
prog.o and procedure.o with all of the C startup routines in /usr/ccs/lib/crt0.o
and
library routines from the C library
libc.sl or libc.a. The resulting executable program is placed in
file prog:
cc prog.c procedure.o -o prog
WARNINGS
Options not recognized by cc are not passed on to the link editor. The option -Wl,arg can be used to pass
any such option to the link editor.
By default, the return value from a C program is completely random. The only two guaranteed ways to
return a specific value are to explicitly call
exit() (see exit(2)) or leave the function
main() with a
return expression; construct.
FILES
file.c Input file
file.o Object file
a.out Linked executable output file
/var/tmp/ctm* Temporary files used by the compiler
/usr/ccs/bin/as Assembler (see as(1))
/usr/ccs/bin/ld Link editor (see ld(1))
/usr/ccs/lib/crt0.o Runtime startup
/usr/lib/libc.a Standard C library (archive version), see HP-UX Reference
Section (3)
/usr/lib/libc.sl Standard C library (shared version), see HP-UX Reference
Section (3)
/usr/include Standard directory for #include files
Bundled C Compiler Files
/usr/ccs/bin/cc Cdriver
/usr/ccs/lbin/ccom
C compiler
/usr/lib/nls/msg/$LANG/cc.cat C compiler message catalog
/usr/ccs/lbin/cpp C preprocessor
SEE ALSO
System Tools
as(1) Translate assembly code to machine code.
cpp(1) Invoke the C language preprocessor.
ld(1) Invoke the link editor.
cc(1) The ANSI-compliant C compiler on HP-UX.
Section 1−−64 − 3 − HP-UX Release 11i: December 2000
___
___