probe Code Generation Option (OS/2, Windows)
| Syntax: |
Default: |
gen(probe[, yes])
gen(probe, no) |
gen(probe[, yes]) |
This option controls whether to use stack probes to ensure the
stack growth mechanism works correctly.
By default, stack probes are used.
Stack probes go into the prolog of every function with more
than 2K of stack storage, therefore your program can run faster
with probe set to no. However, you should not turn off stack
probes unless your program satisfies one or more of the following
criteria:
- You set link(stack, reserve,
commit) to commit more memory than is
required to store all local variables.
- You guarantee that the stack will always be allocated.
For example, you could write a guard routine to run once
at the beginning of each thread and serially access each
page up to the last page, leaving that page as a guard
page.
- Your local variables require less than 2K of storage on
the stack.
Your application has only one thread. The stack is fully
allocated for the first thread.

Incremental C++ Builds
C Compilation
Configuration
Files
The Program Stack

Set Build Options
Build

Code Generation Options