Controlling the Inlining of Procedures

To specify the types of procedures to be inlined, use the /inline options. Also, compile multiple source files together and specify an adequate optimization level, such as /optimize:4.

If you omit /noinline and the /inline options, the optimization level /optimize option used determines the types of procedures that are inlined.

The /inline options are as follows:

For information on the inlining of other procedures (inlined at optimization level /optimize:4 or higher), see Inlining Procedures.

Maximizing the types of procedures that are inlined usually improves run-time performance, but compile-time memory usage and the size of the executable program may increase.

To determine whether using /inline:all benefits your particular program, time program execution for the same program compiled with and without /inline:all.