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

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Compiler Command-line Options<br />

• --arm_linux on page 2-11 in the Linker Reference Guide<br />

• --library=name on page 2-54 in the Linker Reference Guide<br />

• --search_dynamic_libraries, --no_search_dynamic_libraries on page 2-78 in the<br />

Linker Reference Guide<br />

• Application Note 212 - Building Linux applications using RVCT v4.0 and the<br />

GNU <strong>Tools</strong> and Libraries.<br />

2.1.157 --translate_gcc<br />

This option helps to emulate gcc by enabling the translation of command lines from the<br />

GNU tools.<br />

Usage<br />

You can use this option to provide either of the following:<br />

• a full GCC emulation targeting <strong>ARM</strong> Linux<br />

• a subset of full GCC emulation in the form of translating individual GCC<br />

command-line arguments into their RVCT equivalents.<br />

To provide a full GCC emulation, you must also use --arm_linux_config_file. This<br />

combination of options selects the appropriate GNU header files and libraries specified<br />

by the configuration file, and includes changes to some default behaviors.<br />

To translate individual GCC command-line arguments into their RVCT equivalents<br />

without aiming for full GCC emulation, use --translate_gcc to emulate gcc, but do not<br />

use it with --arm_linux_config_file. Because you are not aiming for full GCC<br />

emulation with this method, RVCT default behavior is retained, and no defaults are set<br />

for targeting <strong>ARM</strong> Linux. RVCT library paths and option defaults remained unchanged.<br />

Restrictions<br />

If you specify an <strong>ARM</strong> Linux configuration file on the command line and you use<br />

--translate_gcc, this alters the default settings for --bss_threshold, --relaxed_ref_def<br />

and --no_relaxed_ref_def, and --signed_bitfields and --unsigned_bitfields.<br />

See also<br />

• --arm_linux on page 2-9<br />

• --arm_linux_config_file=path on page 2-10<br />

• --arm_linux_configure on page 2-12<br />

• --arm_linux_paths on page 2-13<br />

• --configure_cpp_headers=path on page 2-24<br />

2-124 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!