|
Welcome to the HP aC++/HP C Online Programmer's Guide. This document is organized into the following sections:
|
| Getting Started |
|
The HP aC++ compiler supports the ISO/IEC 14882 Standard for the C++
Programming Language (the international standard for C++).
The HP ANSI C compiler supports ANSI programming language C standard
ISO 9899:1990. This section discusses the major components of the compiling system, compiling, executing and debugging a simple program.
more»
|
| Command Syntax and Environment Variables |
|
This section introduces you to the the HP aC++ compiler command syntax
and environment variables. It gives an overview of the command syntax,
examples of the aCC and cc commands and files you can use on the command line. This section also discusses Environment Variables and
Floating Installation.
more»
|
| Command-Line Options |
|
You can specify command-line options to the aCC and cc commands.
They allow you to override the default actions of the compiler.
Each option begins with either a - or a + sign. Any number of options
can be interspersed anywhere in the aCC and cc commands and they are typically
separated by blanks.
more»
|
| Pragma Directives |
|
Use a #pragma directive to control the actions of the
compiler in a particular portion of a translation unit without
affecting the translation unit as a whole.
more»
|
| Preprocessing Directives |
|
Preprocessing directives function as compiler control lines.
They allow you to direct the compiler to perform certain actions on
the source file.
more»
|
| Using HP aC++ Templates |
|
This section overviews template processing and
describes instantiation coding methods available to you.
more»
|
| Exception Handling |
|
Exception handling provides a standard mechanism for coding responses
to runtime errors or exceptions. Exception handling is on by default.
To turn it off, you must use the +noeh option.
more»
|
| Using Threads |
| The HP aC++ run-time environment supports multi-threaded
applications. This section discusses HP aC++ libraries that are thread-safe with given limitations.
more»
|
| Parallel Programming Using OpenMP |
|
OpenMP is an industry-standard parallel programming model that implements
a fork-join model of parallel execution. The HP C++ OpenMP pragmas are
based on the OpenMP Standard for C/C++, version 2.0.
more»
|
| Standardizing Your Code |
|
HP aC++ largely conforms to the ISO/IEC 14882 Standard for the C++ Programming Language.
This section discusses how you can standardize your code.
more»
|
| Optimizing Your Code |
|
HP aC++/HP C provides options to the aCC and cc commands and pragmas to control
optimization. This section introduces the basic concepts
of optimizing your HP aC++ code for improved efficiency.
more»
|
| LEX and YACC |
|
lex and yacc are bundled with the HP aC++/HP C product. This section
lists the HP specific features of lex and yacc.
more»
|
| Creating and Using Libraries |
|
This section gives an overview of libraries provided
with HP aC++ and how you can create and use your own libraries.
more»
|
| Mixing HP aC++ with Other Languages |
|
This section provides guidelines for linking HP aC++ modules
with modules written in HP C and HP FORTRAN 90 on HP 9000 Series
700/800 systems. more»
|
| Migrating from HP C++ (cfront) to HP aC++ |
|
This section discusses differences in syntax and functionality that you need to consider when migrating from HP C++ (cfront) to HP aC++. more»
|
| Distributing Your HP aC++ Products |
|
Distribute your products in such a way that your customer does not need
to use the HP aC++ compiler or driver. That is, distribute only
executables and shared libraries. Be sure your customer has read this
distribution information. more»
|
| Glossary |
|
The glossary contains definitions of terms listed alphabetically.
more»
|