Skip to main content

IAR Embedded Workbench for Arm 9.70.x

possible calls directive

In this section:
Syntax
possible calls calling-func : called-func [ , called-func... ];
Parameters

See the information on syntactic components:

func-spec

Description

Specifies an exhaustive list of possible destinations for all indirect calls in one function. Use this for functions which are known to perform indirect calls and where you know exactly which functions that might be called in this particular application. Consider using the #pragma calls directive if the information about which functions that might be called is available when compiling.

Example
possible calls MyFunc7: MyFunc8, MyFunc9;

When the function does not perform any calls, the list is empty:

possible calls MyFunc8: ;
See also

calls.