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-UX Systems: HP aC++/HP C Programmer's Guide > Chapter 2 Command-Line Options

Inlining Options

» 

Technical documentation

Complete book in PDF
» Feedback
Content starts here

 » Table of Contents

 » Glossary

 » Index

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++ inlining hints influence HP aC++. Such inlining happens in addition to functions that are explicitly tagged with the inline keyword. (For C89, use the __inline keyword).

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

Specify num as any value between 0 and 9. Refer to the following table:

numDescription
0No inlining is done (same as the +d option).
1

Only functions marked with inline or implied by the language to be inline are considered for inlining.

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

2Specifying 2 provides more inlining than level 1. This is the default level at optimization levels +O2, +O3, and +O4.
3-8Specifying values between 3 and 8 increases levels of inliner aggressiveness.

9

Specifying 9 inlines 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:

levelnum
01
11
22
32
42

NOTE: This option controls functions declared with the inline keyword or within the class declaration and is effective at all optimization levels.

The options +O[no]inline and +Oinlinebudget control 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

Printable version
Privacy statement Using this site means you accept its terms Feedback to webmaster
© Hewlett-Packard Development Company, L.P.