29.12.2014 Views

RealView Compilation Tools Compiler Reference Guide - ARM ...

RealView Compilation Tools Compiler Reference Guide - ARM ...

RealView Compilation Tools Compiler Reference Guide - ARM ...

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

<strong>Compiler</strong> Command-line Options<br />

2.1.45 --[no_]exceptions<br />

This option enables or disables exception handling.<br />

In C++, the --exceptions option enables the use of throw and try/catch, causes function<br />

exception specifications to be respected, and causes the compiler to emit unwinding<br />

tables to support exception propagation at runtime.<br />

In C++, when the --no_exceptions option is specified, throw and try/catch are not<br />

permitted in source code. However, function exception specifications are still parsed,<br />

but most of their meaning is ignored.<br />

In C, the behavior of code compiled with --no_exceptions is undefined if an exception<br />

is thrown through the compiled functions. You must use --exceptions, if you want<br />

exceptions to propagate correctly though C functions.<br />

Default<br />

The default is --no_exceptions.<br />

See also<br />

• --[no_]exceptions_unwind.<br />

2.1.46 --[no_]exceptions_unwind<br />

This option enables or disables function unwinding for exception-aware code. This<br />

option is only effective if --exceptions is enabled.<br />

When you use --no_exceptions_unwind and --exceptions then no exception can<br />

propagate through the compiled functions. std::terminate is called instead.<br />

Default<br />

The default is --exceptions_unwind.<br />

See also<br />

• --[no_]exceptions<br />

• Function unwinding at runtime on page 5-18.<br />

2.1.47 --[no_]export_all_vtbl<br />

This option controls how dynamic symbols are exported in C++.<br />

<strong>ARM</strong> DUI 0348A Copyright © 2007, 2010 <strong>ARM</strong> Limited. All rights reserved. 2-35<br />

Non-Confidential

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!