Skip to main content

IAR Embedded Workbench for RH850 3.20.x

‑‑vla

In this section:
Syntax

‑‑vla

Description

Use this option to enable support for variable length arrays in C code. Such arrays are located on the heap. This option requires Standard C and cannot be used together with the ‑‑c89 compiler option.

Note

‑‑vla should not be used together with the longjmp library function, as that can lead to memory leakages.

See also

C language overview.

Caution

Project>Options>C/C++ Compiler>Language 1>C dialect>Allow VLA