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

2.1.147 --show_cmdline<br />

This option shows how the command-line options are processed.<br />

The commands are shown in their preferred form, and the contents of any via files are<br />

expanded.<br />

See also<br />

• -Aopt on page 2-2<br />

• -Lopt on page 2-79<br />

• --via=filename on page 2-132.<br />

2.1.148 --signed_bitfields, --unsigned_bitfields<br />

This option makes bitfields of type int signed or unsigned.<br />

The C Standard specifies that if the type specifier used in declaring a bitfield is either<br />

int, or a typedef name defined as int, then whether the bitfield is signed or unsigned is<br />

dependent on the implementation.<br />

Default<br />

The default is --unsigned_bitfields. However, if you specify an <strong>ARM</strong> Linux<br />

configuration file on the command line and you use --translate_gcc or<br />

--tranlsate_g++, the default is --signed_bitfields.<br />

Note<br />

The AAPCS requirement for bitfields to default to unsigned on <strong>ARM</strong>, is relaxed in<br />

version 2.03 of the standard.<br />

Example<br />

typedef int integer;<br />

struct<br />

{<br />

integer x : 1;<br />

} bf;<br />

Compiling this code with --signed_bitfields causes to be treated as a signed bitfield.<br />

See also<br />

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

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

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