04.01.2015 Views

RealView Compilation Tools - ARM Information Center

RealView Compilation Tools - ARM Information Center

RealView Compilation Tools - ARM Information Center

SHOW MORE
SHOW LESS

Create successful ePaper yourself

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

Compiler Command-line Options<br />

Note<br />

The option --force_new_nothrow is provided only as a migration aid for legacy source<br />

code that does not conform to the C++ standard. Its use is not recommended.<br />

Mode<br />

This option is effective only if the source language is C++.<br />

Default<br />

The default is --no_force_new_nothrow.<br />

Example<br />

struct S<br />

{<br />

void* operator new(std::size_t);<br />

void* operator new[](std::size_t);<br />

};<br />

void *operator new(std::size_t, int);<br />

With the --force_new_nothrow option in effect, this is treated as:<br />

struct S<br />

{<br />

void* operator new(std::size_t) throw();<br />

void* operator new[](std::size_t) throw();<br />

};<br />

void *operator new(std::size_t, int) throw();<br />

See also<br />

• Using the ::operator new function on page 5-13.<br />

2.1.71 --forceinline<br />

This option forces all inline functions to be treated as if they are qualified with<br />

__forceinline.<br />

Inline functions are functions that are qualified with inline or __inline. In C++, inline<br />

functions are functions that are defined inside a struct, class, or union definition.<br />

If you use --forceinline, the compiler always attempts to inline those functions, if<br />

possible. However, it does not inline a function if doing so causes problems. For<br />

example, a recursive function is inlined into itself only once.<br />

2-58 Copyright © 2007-2010 <strong>ARM</strong>. All rights reserved. <strong>ARM</strong> DUI 0348C<br />

Non-Confidential,<br />

ID101213

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

Saved successfully!

Ooh no, something went wrong!