| United States-English |
|
|
|
![]() |
HP Itanium-based Systems: HP aC++/HP C Programmer's Guide > Chapter 1 Getting Started with HP aC++Components of the Compilation System |
|
The HP aC++ compiling system consists of the following components:
The other HP aC++ executable files are:
HP aC++ Runtime Libraries and Header Files:
To invoke the HP aC++ compiling system, use the aCC command at the shell prompt. The aCC command invokes a driver program that runs the compiling system according to the filenames and command line options that you specify. The best way to get started with HP aC++ is to write, compile, and execute a simple program, as shown in the following example:
If this program is in the file getting_started.C, compiling and linking the program with the aCC command produces an executable file named a.out: $ aCC getting_started.C To run this executable file, just enter the name of the file. The following summarizes this process with the file getting_started.C: $ a.out Enter an integer: 7 14 is twice 7. You can use programming and debugging aides. HP Code Advisor is a code checking tool that can be used to detect programming errors in C/C++ source code. Use "/opt/cadvise/bin/cadvise" to invoke the tool. A brief description is available with the -help option. $ /opt/cadvise/bin/cadvise -help Additional information is available at: http://www.hp.com/go/cadvise/ You can also use the HP WDB debugger to debug your C++ programs after compiling your program with either the -g, the -g0, or the -g1 option. Example: The -g0 option enables generation of debug information: $ aCC -g0 program.C The gdb command runs the HP WDB debugger: $ gdb a.out For more information on the HP WDB debugger, refer to “Debugging Options”. |
|||||||||||||||||||||||||||||||||||||||||||||||||
|
|||||||||||||||