Getting Up and Running |
||
---|---|---|
|
||
|
||
You may obtain the right to use KAI C++ by purchasing a license from Kuck & Associates, Inc. or by taking part in an evaluation program. The rights you have to use KAI C++ vary with the type of license you obtain.
A license from KAI is transmitted via e-mail. This e-mail message contains a URL that provides license manager specific installation instructions. These URLs are:
License Type Instructions Per Seat http://www.kai.com/license-managers/FLEXlm.html Personal Use http://www.kai.com/license-managers/PersonalUse.html Unlimited Users
Node-Lockedhttp://www.kai.com/license-managers/KAIcodekey.html
A small collection of example programs is provied in the
KCC_BASE/examples
subdirectory of the KAI C++ installation.
The Hello, World program is the file Hello.C
.
The simplest way to invoke KAI C++ is the following:
KCC hello.C
This command compiles and links the program hello.C
.
KCC recognizes options common to most UNIX C/C++ compilers such
as -c and -o.
When compiling object files, use the +K0 option when debugging, and use the +K3 -O options for better performance. The +K options control front-end optimization, which are language-specific optimizations. The -O options control back-end optimization, which are architecture-specific optimizations. Using front-end optimizations without the back-end optimizations is usually pointless. Front-end optimization levels above +K1 can significantly increase compilation time. Depending upon your coding style and machine, the higher levels may not help at all or may speed up your code by better than 2x. You will have to experiment to find out.
KAI C++ is link compatible with other C compilers. KAI C++ is not link compatible with other C++ compilers. This means that all of the C++ code in your program must be compiled with KAI C++.