- IAR Embedded Workbench for Arm 9.70.x
- IAR C/C++ Development
- The stack usage control file
- Stack usage control directives
- max recursion depth directive
max recursion depth directive
In this section:
Syntax
max recursion depthfunc-spec:size;
Parameters
See the information on syntactic components:
Description
Specifies the maximum number of iterations through any of the cycles in the recursion nest of which the function is a member.
A recursion nest is a set of cycles in the call graph where each cycle shares at least one node with another cycle in the nest.
Stack usage analysis will base its result on the max recursion depth multiplied by the stack usage of the deepest cycle in the nest. If the nest is not entered on a point along one of the deepest cycles, no stack usage result will be calculated for such calls.
Example
max recursion depth MyFunc12: 10;