Jump to content United States-English
HP.com Home Products and Services Support and Drivers Solutions How to Buy
» Contact HP
More options
HP.com home
HP Itanium-based Systems: HP aC++/HP C Programmer's Guide > Chapter 2 Command-Line Options

Verbose Compile and Link Information

» 

Technical documentation

Complete book in PDF
» Feedback
Content starts here

 » Table of Contents

 » Glossary

 » Index

Use the following options to obtain additional information about:

  • The HP compiler actions while compiling or linking your program.

  • The subprocesses executed for a given command line, without running the compiler.

  • The current compiler and linker version numbers.

  • The Execution time.

+dryrun

+dryrun

The +dryrun option generates subprocess information for a given command line without running the subprocesses. It is useful in the development process to obtain command lines of compiler subprocesses in order to run the commands manually or to use them with other tools.

Example:

The following command line gives the same kind of information as the -v option, but without running the subprocesses.

aCC +dryrun app.C

+O[no]clone

+O[no]clone

The +O[no]clone option influences cloning both into and out of the functions it governs.

Cloning is controlled by a list-free option +O[no]clone analogous to +O[no]inline. It is on by default with +O3 and +O4, and can be disabled.

Example:

$ cc -c +Oprofile=use +O4 foo.c +Onoclone

$ cc -c +Oprofile=use +O4 bar.c

In the above example, +Onoclone applies to the function foo, and directs that foo itself should not be cloned and that calls from foo (bar) should not be redirected to clones.

+O[no]info

+O[no]info

The +Oinfo option displays informational messages about the optimization process. This option may be helpful in understanding what optimizations are occurring. You can use the option at levels 0-4. The default is +Onoinfo at levels 0-4.

+time

+time

The +time option generates timing information for compiler subprocesses. For each subprocess, estimated time is generated in seconds for user processes, system calls, and total processing time. This option is useful in the development process, for example, when tuning an application’s compile-time performance.

Examples:

  • The aCC +time app.C command generates the following information:

    process: compiler         0.94/u     0.65/s      4.35/r
    process: ld             0.37/u     0.76/s     3.02/r
  • The aCC -v +time app.C command generates the following information:

    /opt/aCC/lbin/ctcom -inst compiletime -diags 523 -D __hppa -D __hpux
    -D __unix -D __hp9000s800 -D __STDCPP__ -D __hp9000s700 -D _PA_RISC1_1
    -I /opt/aCC/include -I /opt/aCC/include/iostream -I /usr -I
    /usr/include -I /usr/include -inline_power 0 app.C

    file name: app.C
    file size: app.o 444 + 16 + 1 = 461
    process user sys real
    ------------------------------------------
    process: compiler 0.93 0.13 1.17
    ------------------------------------------
    line numbers: app.C 7
    lines/minute: app.C 396

    LPATH=/usr/lib:/usr/lib/hpux32/pa1.1 :/usr/lib:/opt/langtools/lib:/usr/lib
    /opt/aCC/lbin/ld -o a.out /opt/aCC/lib/crt0.o -u ___exit -u main
    -L /opt/aCC/lib /opt/aCC/lib/cpprt0.o app.o -lstd -lstream -lCsup -lm
    /usr/lib/hpux32/libcl.a -lc /usr/lib/hpux32/libdld.so >/usr/tmp/AAAa28149 2>&1

    file size: a.out 42475 + 1676 + 152 = 44303
    process user sys real
    ------------------------------------------
    process: ld 0.35 0.24 0.82
    ------------------------------------------
    total link time(user+sys): 0.59
    removing /usr/tmp/AAAa28149
    removing app.o

-v

-v

The -v option enables verbose mode, sending a step-by-step description of the compilation process to stderr. This option is especially useful for debugging or for learning the appropriate commands for processing a C++ file.

Example:

The aCC -v file.C command compiles file.C and gives information about the process of compiling.

/opt/aCC/lbin/ctcom -inst compiletime -diags 523 -D __hppa -D __hpux
-D __unix -D __hp9000s800 -D __STDCPP__ -D __hp9000s700 -D _PA_RISC1_1
-I /opt/aCC/include -I /opt/aCC/include/iostream -I /usr -I
/usr/ include
-I /usr/include -inline_power 0 app.C
LPATH=/usr/lib:/usr/lib/hpux32/pa1.1
:/usr/lib:/opt/langtools/lib:/usr/lib
/opt/aCC/lbin/ld -o a.out /opt/aCC/lib/crt0.o -u ___exit -u main
-L /opt/aCC/lib /opt/aCC/lib/cpprt0.o app.o -lstd -lstream -lCsup
-lm /usr/lib/hpux32/libcl.a -lc /usr/lib/hpux32/libdld.so >/usr/tmp/AAAa28149 2>&1
removing /usr/tmp/AAAa28149

-V

-V

The -V option displays the version numbers of the current compiler and linker (if the linker is executed). Use this option whenever you need to know the current compiler and linker version numbers.

Example:

aCC -V app.C

aCC: HP aC++/ANSI C B3910B A.06.00 [Aug 25 2004]
ld: 92453-07 linker ld HP Itanium(R) B.12.24 PBO 040820 (IPF/IPF)
Printable version
Privacy statement Using this site means you accept its terms Feedback to webmaster
© Hewlett-Packard Development Company, L.P.