SAVE

Abbreviation

None.

Arguments

None.

Default

None.

Description

The SAVE directive stores the current settings of AREGS and REGPARMS, and the current OPTIMIZE level and emphasis. These settings are saved before an #INCLUDE directive and restored (using the RESTORE directive) afterwards.

The maximum nesting depth for SAVE directives is eight levels.

NOTE

SAVE may be specified only as an argument of a #pragma statement.

See Also

RESTORE

Example
#pragma save
#pragma noregparms

extern void test1 (char c, int i);
extern char test2 (long l, float f);

#pragma restore

Parameter passing in registers is disabled for the two external functions, test1 and test2. The settings at the time of the SAVE directive are restored by the RESTORE directive.