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

• --thumb on page 2-122<br />

• #pragma arm on page 4-59<br />

• Specifying the target processor or architecture on page 2-23 in the Compiler User<br />

Guide.<br />

2.1.7 --arm_linux<br />

This option configures a set of other options with defaults that are suitable for <strong>ARM</strong><br />

Linux compilation.<br />

Usage<br />

These defaults are enabled automatically when you use one of the following <strong>ARM</strong><br />

Linux options:<br />

• --arm_linux_paths<br />

• --translate_gcc in full GCC emulation mode<br />

• --translate_g++ in full GCC emulation mode<br />

• --translate_gld in full GCC emulation mode.<br />

Typical use of this option is to aid the migration of legacy code. It enables you to<br />

simplify the compiler options used in existing makefiles, while retaining full and<br />

explicit control over the header and library search paths used.<br />

When migrating from a build earlier than RVCT v4.0, you can replace all of these<br />

options supplied to the compiler with a single --arm_linux option.<br />

Default<br />

By default, the configured set of options is:<br />

• --apcs=/interwork<br />

• --enum_is_int<br />

• --gnu<br />

• --library_interface=aeabi_glibc<br />

• --no_hide_all<br />

• --preinclude=linux_rvct.h<br />

• --wchar32.<br />

Example<br />

To apply the default set of options, use --arm_linux.<br />

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

ID101213<br />

Non-Confidential,

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

Saved successfully!

Ooh no, something went wrong!