Skip to main content

IAR Embedded Workbench for RX 5.20

function directive

In this section:
Syntax
[ override ] function [ category ] func-spec: stack-size [ , call-info... ];
Parameters

See the information on syntactic components:

category

func-spec

call-info

stack-size

Description

Specifies what the maximum stack usage is in a function and which other functions that are called from that function.

Normally, an error is issued if there already is stack usage information for the function, but if you start with override, the error will be suppressed and the information supplied in the directive will be used instead of the previous information.

Example
function _MyOtherFunc: (ISTACK 28, USTACK 16);
function [interrupt] _MyInterruptHandler: (ISTACK 28, USTACK 16);