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

Create successful ePaper yourself

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

Compiler-specific Features<br />

Default<br />

The default is #pragma no_anon_unions.<br />

See also<br />

• Anonymous classes, structures and unions on page 3-20<br />

• __attribute__((transparent_union)) on page 4-46.<br />

4.6.2 #pragma arm<br />

This pragma switches code generation to the <strong>ARM</strong> instruction set. It overrides the<br />

--thumb compiler option.<br />

See also<br />

• --arm on page 2-8<br />

• --thumb on page 2-122<br />

• #pragma thumb on page 4-73.<br />

4.6.3 #pragma arm section [section_sort_list]<br />

This pragma specifies a section name to be used for subsequent functions or objects.<br />

This includes definitions of anonymous objects the compiler creates for initializations.<br />

Note<br />

You can use __attribute__((section(..))) for functions or variables as an alternative<br />

to #pragma arm section.<br />

Syntax<br />

#pragma arm section [section_sort_list]<br />

Where:<br />

section_sort_list<br />

specifies an optional list of section names to be used for<br />

subsequent functions or objects. The syntax of section_sort_list<br />

is:<br />

section_type[[=]"name"] [,section_type="name"]*<br />

Valid section types are:<br />

• code<br />

• rodata<br />

<strong>ARM</strong> DUI 0348C Copyright © 2007-2010 <strong>ARM</strong>. All rights reserved. 4-59<br />

ID101213<br />

Non-Confidential,

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

Saved successfully!

Ooh no, something went wrong!