[next] [prev] [prev-tail] [tail] [up]

#### 1.2.78 $W or $STACKFRAMES : Generate stackframes

The {$W} switch directive controls the generation of stackframes. In the on state, the compiler will generate a stackframe for every procedure or function.

In the off state, the compiler will omit the generation of a stackframe if the following conditions are satisfied:

- The procedure has no parameters.
- The procedure has no local variables.
- If the procedure is not an assembler procedure, it must not have a asm …end; block.
- it is not a constructor or destructor.

If these conditions are satisfied, the stack frame will be omitted.

[next] [prev] [prev-tail] [front] [up]