Contents

 

HP secure development lifecycle....................................................................

17

About This Document ..................................................................................

18

Intended Audience..................................................................................................................

18

What’s in This Document.........................................................................................................

18

Typographical Conventions.................................................................................................

19

HP-UX Release Name and Release Identifier..........................................................................

20

Publishing History...................................................................................................................

20

Related Documents.................................................................................................................

20

HP Encourages Your Comments................................................................................................

21

1 Getting Started with HP aC++...................................................................

22

Components of the Compilation System.....................................................................................

22

Using the aCC Command...................................................................................................

23

Compiling a Simple Program...............................................................................................

23

Executing the Program........................................................................................................

23

Debugging Programs.........................................................................................................

23

HP Code Advisor..........................................................................................................

23

HP WDB Debugger.......................................................................................................

23

Accessing Online Example Source Files...........................................................................

24

Compiler Command Syntax and Environmental Variables.............................................................

24

Examples of the aCC Command..........................................................................................

24

Compiling and Renaming an Output File..........................................................................

24

Compiling and Debugging ............................................................................................

24

Compiling Without Linking.............................................................................................

24

Linking Object Files.......................................................................................................

24

Compiling, Optimizing, and Getting Verbose Information...................................................

24

Compiling and Creating a Shared Library........................................................................

25

Files on the aCC Command Line...............................................................................................

25

C++ Source File (.C file).....................................................................................................

25

Preprocessed Source Files (.i Files) .......................................................................................

25

Assembly Language Source Files (.s Files) .............................................................................

25

Object Files (.o Files)..........................................................................................................

26

Library Files (.a and .so Files)..............................................................................................

26

Configuration Files (.conf Files)............................................................................................

26

Environment Variables.............................................................................................................

26

aCC_FULL_PATHNAMES Environment Variable......................................................................

27

aCC_MAXERR Environment Variable....................................................................................

27

CXXOPTS Environment Variable...........................................................................................

27

CCLIBDIR Environment Variable...........................................................................................

27

CCROOTDIR Environment Variable.......................................................................................

28

CXX_MAP_FILE Environment Variable...................................................................................

29

TMPDIR Environment Variable..............................................................................................

29

Floating Installation.................................................................................................................

29

HP aC++..........................................................................................................................

30

HP C................................................................................................................................

30

Setting up Floating Installation.............................................................................................

30

2 Command-Line Options.............................................................................

31

Options to Control Code Generation.........................................................................................

32

-c ....................................................................................................................................

32

+DOosname ....................................................................................................................

32

+DDdata_model ...............................................................................................................

32

Contents 3