-qkeepparm

Description

Ensures that function parameters are stored on the stack even if the application is optimized.

Syntax

Read syntax diagramSkip visual syntax diagram        .-nokeepparm-.
>>- -q--+-keepparm---+-----------------------------------------><

Notes

A function usually stores its incoming parameters on the stack at the entry point. However, when you compile code with optimization options enabled, the compiler may remove these parameters from the stack if it sees an optimizing advantage in doing so.

Specifying -qkeepparm ensures that the parameters are stored on the stack even when optimizing. This compiler option ensures that the values of incoming parameters are available to tools, such as debuggers, by preserving those values on the stack. However, doing so may negatively affect application performance.

Related information