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>-specific Features<br />

4.1 Keywords and operators<br />

This section describes the function keywords and operators supported by the <strong>ARM</strong><br />

compiler armcc.<br />

Table 4-1 lists keywords that are <strong>ARM</strong> extensions to the C and C++ Standards. Standard<br />

C and Standard C++ keywords that do not have behavior or restrictions specific to the<br />

<strong>ARM</strong> compiler are not documented in the table.<br />

Table 4-1 Keyword extensions supported by the <strong>ARM</strong> compiler<br />

Keywords<br />

__align __int64 __svc<br />

__ALIGNOF__ __INTADDR__ __svc_indirect<br />

__asm __irq __svc_indirect_r7<br />

__declspec __packed __value_in_regs<br />

__forceinline __pure __weak<br />

__global_reg __softfp __writeonly<br />

__inline<br />

__smc<br />

4.1.1 __align<br />

The __align keyword instructs the compiler to align a variable on an n-byte boundary.<br />

__align is a storage class modifier. It does not affect the type of the function.<br />

Syntax<br />

__align(n)<br />

Where:<br />

n<br />

is the alignment boundary.<br />

n can take the values 1, 2, 4, or 8.<br />

The keyword __align comes immediately before the variable name.<br />

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