29.12.2014 Views

RealView Compilation Tools Compiler Reference Guide - ARM ...

RealView Compilation Tools Compiler Reference Guide - ARM ...

RealView Compilation Tools Compiler Reference Guide - ARM ...

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.

<strong>Compiler</strong> Command-line Options<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 />

2.1.108 --[un]signed_chars<br />

This option makes the char type signed or unsigned.<br />

When char is signed, the macro __FEATURE_SIGNED_CHAR is defined by the compiler.<br />

Note<br />

Care must be taken when mixing translation units that have been compiled with and<br />

without this option, and that share interfaces or data structures.<br />

The <strong>ARM</strong> ABI defines char as an unsigned byte, and this is the interpretation used by<br />

the C++ libraries supplied with RVCT.<br />

Default<br />

The default is --unsigned_chars.<br />

See also<br />

• Predefined macros on page 4-103.<br />

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

<strong>ARM</strong> DUI 0348A Copyright © 2007, 2010 <strong>ARM</strong> Limited. All rights reserved. 2-81<br />

Non-Confidential

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

Saved successfully!

Ooh no, something went wrong!