Skip to main content

IAR Embedded Workbench for RX 5.20

call_graph_root

In this section:
Syntax
#pragma call_graph_root[=category]
Parameters

category

A string that identifies an optional call graph root category

Description

Use this pragma directive to specify that, for stack usage analysis purposes, the immediately following function is a call graph root. You can also specify an optional category. The compiler will usually automatically assign a call graph root category to interrupt and task functions. If you use the #pragma call_graph_root directive on such a function you will override the default category. You can specify any string as a category.

Example
#pragma call_graph_root="interrupt"
See also

Stack usage analysis.