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 />

Usage<br />

After function entry and before function exit, the following profiling functions are<br />

called with the address of the current function and its call site:<br />

void __cyg_profile_func_enter(void *current_func, void *callsite);<br />

void __cyg_profile_func_exit(void *current_func, void *callsite);<br />

Restrictions<br />

You must provide definitions of __cyg_profile_func_enter() and<br />

__cyg_profile_func_exit().<br />

It is necessary to explicitly mark __cyg_profile_func_enter() and<br />

__cyg_profile_func_exit() with __attribute__((no_instrument_function)).<br />

See also<br />

• __attribute__((no_instrument_function)) on page 4-35.<br />

2.1.82 --gnu_version=version<br />

This option attempts to make the compiler compatible with a particular version of GCC.<br />

Syntax<br />

--gnu_version=version<br />

Where version is a decimal number denoting the version of GCC that you are<br />

attempting to make the compiler compatible with.<br />

Mode<br />

This option is for when GNU compatibility mode is being used.<br />

Usage<br />

This option is for expert use. It is provided for dealing with legacy code. You are not<br />

normally required to use it.<br />

Default<br />

In RVCT v4.0, the default is 40200. This corresponds to GCC version 4.2.0.<br />

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

ID101213<br />

Non-Confidential,

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

Saved successfully!

Ooh no, something went wrong!