14.1.8 Enabling Stack Checking

You can enable stack checking by defining the ?CHKSTK option. When stack checking is enabled, the prolog code calls the externally defined routine CHKSTK to allocate local variables.

You can define the ?CHKSTK option by using the = directive. The statement has the following form:

?CHKSTK = 1

Once ?CHKSTK is defined, stack checking is enabled for the entire file.

The default (when ?CHKSTK is not defined) is no stack checking.