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

• -Onum on page 2-96.<br />

2.1.78 --global_reg=reg_name[,reg_name,...]<br />

This option treats the specified register names as fixed registers.<br />

Syntax<br />

--global_reg=reg_name[,reg_name,...]<br />

Where reg_name is the APCS or TPCS name of the register, denoted by an integer value<br />

in the range 1 to 8.<br />

Register names 1 to 8 map sequentially onto registers r4 to r11.<br />

Restrictions<br />

This option has the same restrictions as the __global_reg storage class specifier.<br />

Example<br />

--global_reg=1,4,5 // reserve registers r4, r7 and r8 respectively.<br />

See also<br />

• __global_reg on page 4-7<br />

• <strong>ARM</strong> Software Development Toolkit Reference Guide.<br />

2.1.79 --gnu<br />

This option enables the GNU compiler extensions supported by the <strong>ARM</strong> compiler. The<br />

version of GCC the extensions are compatible with can be determined by inspecting the<br />

predefined macros __GNUC__ and __GNUC_MINOR__.<br />

See also<br />

• --c90 on page 2-22<br />

• --c99 on page 2-22<br />

• --cpp on page 2-30<br />

• --gnu_defaults on page 2-68<br />

• --strict, --no_strict on page 2-119<br />

• GNU language extensions on page 3-25<br />

• Compiler predefines on page 4-198.<br />

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

ID101213<br />

Non-Confidential,

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

Saved successfully!

Ooh no, something went wrong!