Download RealView Compilation Tools Compiler Reference Guide
Transcript
Compiler-specific Features 4.1 Keywords and operators This section describes the function keywords and operators supported by the ARM compiler armcc. Table 4-1 lists keywords that are ARM extensions to the C and C++ Standards. Standard C and Standard C++ keywords that do not have behavior or restrictions specific to the ARM compiler are not documented in the table. Table 4-1 Keyword extensions supported by the ARM compiler Keywords 4.1.1 __align __int64 __svc __ALIGNOF__ __INTADDR__ __svc_indirect __asm __irq __svc_indirect_r7 __declspec __packed __value_in_regs __forceinline __pure __weak __global_reg __softfp __writeonly __inline __smc __align The __align keyword instructs the compiler to align a variable on an n-byte boundary. __align is a storage class modifier. It does not affect the type of the function. Syntax __align(n) Where: n is the alignment boundary. For local variables, n can take the values 1, 2, 4, or 8. For global variables, n can take any value up to 0x80000000 in powers of 2. The keyword __align comes immediately before the variable name. 4-2 Copyright © 2007-2010 ARM. All rights reserved. Non-Confidential, ARM DUI 0348C ID101213