search    
Hewlett-Packard
HP aC++/HP C Online Programmer's Guide
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»
Creating and Using Precompiled Headers
You can reduce compilation time by precompiling common include (header) files. There are two mechanisms for precompiling headers header caching and manual precompiled headers. 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»

 Rogue Wave Library Manuals
The following library is std namespace enabled and includes the standard iostream library. It is not compatible with the older Rogue Wave libraries listed below.


NOTE: If you are accessing this guide from the World Wide Web URL, http://docs.hp.com, rather than from a system on which HP aC++/HP C is installed, Rogue Wave documentation is not available. The above four links and any other such links within this guide will not succeed.

Rogue Wave Standard C++ Library Version 2.02.01

The following library is std namespace enabled and is compatible with Rogue Wave Standard C++ Library Version 2.02.01.

The following two libraries are not std namespace enabled. They are not compatible with the newer Rogue Wave library listed above.

Product Information

Product Number
B9007AA
B3911DB | B3913DB
Version
A.06.10

May 2006
 

Resources

Release Notes

Information Map
more information
about this guide
and about C++

Choice of
C++ Runtime

on HP-UX
(-AA Vs -AP
)

Web Resources

www.hp.com/go/cpp/

HP aC++ Compiler
Technical Overview

HP Caliper Performance Analyzer

HP Code Advisor

 

 

Search

You can also search
for information using
keywords. Enter a
keyword in the search
box given at the top
of each page to search.