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 speci®ed in the environment or is set to the empty string, the value of LANG is used as a default for each unspeci®ed or empty variable. If LANG is not speci®ed 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
If any errors occur before cc is completed, a nonzero value is returned. Otherwise, zero is returned.
EXAMPLES
The example below compiles the C ®le prog.c to create a prog.o ®le, 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 ®le prog:
cc prog.c procedure.o
WARNINGS
Options not recognized by cc are not passed on to the link editor. The option
By default, the return value from a C program is completely random. The only two guaranteed ways to return a speci®c value are to explicitly call exit() (see exit(2)) or leave the function main() with a return expression; construct.
FILES |
| Input ®le |
file.c |
| |
file.o |
| Object ®le |
a.out |
| Linked executable output ®le |
/var/tmp/ctm* | Temporary ®les 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 | |
|
| Section (3) |
/usr/lib/libc.sl | Standard C library (shared version), see | |
|
| Section (3) |
/usr/include |
| Standard directory for #include ®les |
Bundled C Compiler Files | C driver | |
/usr/ccs/bin/cc | ||
/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 |
Section 1−64 | − 3 − |