### /Oq Compiler Option

Syntax | Default
/Oq[+|-] | /Oq+ if /O- is set /Oq- if /O+ is set

/Oq determines whether the compiler forces the stack to be chained. When the stack is chained, register EBP points to the place on the stack where the previous version of EBP is stored.

By default, the stack is chained unless the target module is being optimized. Optimizing suppresses stack chaining because it can result in slower code.

Summary of Compiler Options
Summary of Compiler Options to Enable Optimization