-msave-reg-params

Pragma equivalent

None.

Purpose

Specifies whether function parameters are stored on the stack at procedure entry.

Syntax

Read syntax diagramSkip visual syntax diagram-m save-reg-params

Defaults

-msave-reg-params is disabled by default

Usage

A function usually stores its incoming parameters on the stack at procedure entry. When the -msave-reg-params option is disabled, parameters are removed from the stack if this provides an optimization advantage. When -msave-reg-params is enabled, parameters are still stored on the stack; however, this might negatively impact execution performance. The -msave-reg-params option is useful when you need to print the values of function parameters in trackback code.

The behavior of -msave-reg-params is similar to that of -qkeepparm in IBM® XL C/C++ for AIX® 16.1.0 or earlier releases.

Predefined macros

None.