mregparm

Lets you control the number registers used to pass integer arguments. This content is specific to C++; it does not apply to DPC++.

Architecture Restrictions

Only available on IA-32 architecture

Syntax

Linux:

-mregparm=n

Windows:

None

Arguments

n

Specifies the number of registers to use when passing integer arguments. You can specify at most 3 registers. If you specify a nonzero value for n, you must build all modules, including startup modules, and all libraries, including system libraries, with the same value.

Default

OFF

The compiler does not use registers to pass arguments.

Description

Control the number registers used to pass integer arguments. This option is provided for compatibility with gcc.

IDE Equivalent

None

Alternate Options

None