Skip to main content

IAR Embedded Workbench for RX 5.20

max recursion depth directive

In this section:
Syntax
max recursion depthfunc-spec : size;
Parameters

See the information on syntactic components:

func-spec

size

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;