![]() |
Man Page |
|---|---|
| User's Guide |
|
|
| NAME | KCC - a multi-platform, optimizing, draft-standard C++ compiler |
| SYNOPSIS | KCC [ options ] filenames |
| DESCRIPTION |
KCC is designed as a C++ optimizer. It is intended to allow the programmer to use C++ features without the performance penalty normally associated with C++. For further information, refer to the KAI C++ User's Guide or the KAI C++ home page.
KCC determines the type of processing needed for a file based upon its extension.
|
source code |
.c .C .cc .cpp .CPP .cxx .CXX | |
|---|---|---|
|
object code |
.o | |
|
static library |
.a | |
|
shared library |
.so | most systems |
| .sl | HP-UX systems | |
KCC uses several components to complete the compilation of a C++ program. When a source code file is compiled, the file is first processed by a front-end processor, which performs high-level C++ optimizations, and then generates a C intermediate file. This C file is then compiled by the target machine's C compiler to generate an object file. When an executable program or an object library is desired, the object and library files are processed to handle template instantiation and static object initialization. The target machine's linker is used to form an executable program. A target machine specific process is followed to build the appropriate type (static or shared) of object library. All of this is, of course, handled by KCC, the KAI C++ compiler driver, and is not normally visible to the user.
KCC is available on many platforms. KCC provides platform independent command line options for those that desire simple, portable, makefiles. For those that require complete control, KCC also provides additional, platform specific, command line options for these platforms:
The man page for the target machine's C compiler (cc), loader (ld) and static archive builder (ar).