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

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

<strong>Compiler</strong> Command-line Options<br />

See also<br />

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

• -Dname[(parm-list)][=def] on page 2-19<br />

• -E on page 2-33<br />

• -M on page 2-60<br />

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

2.1.117 --[no_]unaligned_access<br />

This option enables or disables unaligned accesses to data on <strong>ARM</strong> architecture-based<br />

processors.<br />

Default<br />

The default is --unaligned_access on <strong>ARM</strong>-architecture based processors that support<br />

unaligned accesses to data. This includes:<br />

• all <strong>ARM</strong>v6 architecture-based processors<br />

• <strong>ARM</strong>v7-A and <strong>ARM</strong>v7-R architecture-based processors.<br />

The default is --no_unaligned_access on <strong>ARM</strong>-architecture based processors that do not<br />

support unaligned accesses to data. This includes:<br />

• all pre-<strong>ARM</strong>v6 architecture-based processors<br />

• <strong>ARM</strong>v7-M architecture-based processors.<br />

Usage<br />

--unaligned_access<br />

Use --unaligned_access on processors that support unaligned accesses to<br />

data, for example --cpu=<strong>ARM</strong>1136J-S, to speed up accesses to packed<br />

structures.<br />

To enable unaligned support, you must:<br />

• Clear the A bit, bit 1, of CP15 register 1 in your initialization code.<br />

• Set the U bit, bit 22, of CP15 register 1 in your initialization code.<br />

The initial value of the U bit is determined by the UBITINIT input<br />

to the core.<br />

The RVCT libraries include special versions of certain library functions<br />

designed to exploit unaligned accesses. When unaligned access support<br />

is enabled, the RVCT tools use these library functions to take advantage<br />

of unaligned accesses.<br />

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

Non-Confidential

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

Saved successfully!

Ooh no, something went wrong!