Skip to main content

IAR Embedded Workbench for RL78 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 _MyFunc1: 32,
  calls _MyFunc2,
  calls _MyFunc3, _MyFunc4: 16;

function [interrupt] _MyInterruptHandler: 44;