Developer Guide and Reference

ID 767253
Date 10/31/2024
Public
Document Table of Contents

MP

Creates multiple processes that can be used to compile large numbers of source files at the same time.

Syntax

Linux:

None

Windows:

/MP[processMax]

Arguments

processMax

Optional. Is the maximum number of processes that the compiler should create.

Default

OFF

A single process is used to compile source files.

Description

This option creates multiple processes that can be used to compile large numbers of source files at the same time.

It causes the compiler to create one or more copies of itself, each in a separate process. Then these instances simultaneously compile the source files. In some cases, the total time to build the source files can be significantly reduced, thus improving performance.

If you do not specify processMax, the compiler retrieves the number of effective processors on the computer from the operating system, and creates a process for each processor.

This option applies to compilations, but not to linking or link-time code generation.

IDE Equivalent

None

Alternate Options

None