Skip to main content

IAR Embedded Workbench for Arm 9.70.x

‑‑no_exceptions

In this section:
Syntax

‑‑no_exceptions

Description

Use this option to disable exception support in the C++ language. Exception statements like throw and trycatch, and exception specifications on function definitions will generate an error message. Exception specifications on function declarations are ignored. The option is only valid when used together with the ‑‑c++ compiler option.

If exceptions are not used in your application, it is recommended to disable support for them by using this option, because exceptions cause a rather large increase in code size.

See also

Exception handling and __EXCEPTIONS.

Caution

Project>Options>C/C++ Compiler>Language 1>C++

and deselect

Project>Options>C/C++ Compiler>Language 1>C++ options>Enable exceptions