Skip to main content

IAR Embedded Workbench for Arm 9.70.x

‑‑max_cost_constexpr_call

In this section:
Syntax
‑‑max_cost_constexpr_call=limit
Parameters

limit

The number of calls and loop iterations. The default is 2000000.

Description

Use this option to specify an upper limit for the cost for folding a top-level constexpr call (function or constructor). The cost is a combination of the number of calls interpreted and the number of loop iterations preformed during the interpretation of a top-level call.

Caution

To set this option, use Project>Options>C/C++ Compiler>Extra Options.