To use a browser other than the default, first set the BROWSER environment variable to the alternate browser’s location:

export BROWSER=AlternateBrowserLocation

To invoke the online guide, use the command:

aCC +help

Inlining Options

These options allow you to specify the amount of source code inlining done by HP aC++.

+inline_level num

+inline_level num

The +inline_level option controls how C/C++ inlining hints influence aCC or cc. Such inlining happens in addition to functions that are explicitly tagged with the inline keyword. (For C89, use the __inline keyword). This option controls functions declared with the inline keyword or within the class declaration, and is effective at all optimization levels.

NOTE: The +d and +inline_level 0 options turn off all inlining, including implicit inlining.

The format for num is N[.n], where num is either an integral value from 0 to 9, or a value with a single decimal place from 0.0 to 9.0, as described in the following table:

num

Description

0

No inlining is done (same effect as the +d option).

1

Only functions marked with the inline keyword or implied by the language to be inline are

 

considered for inlining.

 

This is the default for C++ at +O1.

1.0 < num < 2.0 Increasingly makes inliner more aggressive below 2.0.

2

Provides more inlining than level 1. This is the default level at optimization levels +O2, +O3, and

 

+O4.

2.0 < num < 9.0 Increasing levels of inliner aggressiveness.

9

Attempts to inline all functions other than recursive functions or those with a variable number of

 

arguments.

The default level depends on +Olevel as shown in the following table:

level

num

0

1

1

1

2

2

3

2

4

2

The +O[no]inline option controls the high-level optimizer that recognizes other opportunities in the same source file (+O3) or amongst all source files (+O4). For example,

aCC +inline_level 3 app.C

48 Command-Line Options

Page 48
Image 48
HP C/aC++ for PA-RISC Software manual Inlining Options, +inlinelevel num