|Non-Confidential||PDF version||ARM DUI0774E|
|Home > Compiler Command-line Options > -fno-exceptions|
Suppresses the generation of code needed to support C++ exceptions.
-fno-exceptionsoption can be used with the ARM C++ library, with caution:
-fno-exceptions. Therefore, exceptions might be thrown from pre-built libc++ objects.
-fno-exceptionsis used, undefined behavior results instead of throwing an exception. In most cases libc++ will call the assert macro. However in a small number of cases it will call
abort(), and in some cases it will do nothing at all.
NDEBUGis defined these assert macros are removed.
-fno-exceptions, then the program terminates.