### /Om Compiler Option

Syntax: | Default:
/Om[+|-] | /Om-

Use /Om to limit the working set size for the compiler.

The compiler may use a large amount of memory when inlining user code, especially when performing automatic inlining at large thresholds (/Oi50 and higher).

By default, there is no limit to the compiler's working set size.

Note: Because /Om[+] can cause the compiler to disregard some inlining opportunities, code generated with /Om- (the default) may be more efficient.

Inlining

Summary of Compiler Options
Summary of Compiler Options to Enable Optimization