7.26 Embedded assembler support in the compiler

The compiler enables you to include assembly code out-of-line in one or more C or C++ function definitions.

Embedded assembly code provides unrestricted, low-level access to the target processor, enables you to use the C and C++ preprocessor directives, and gives easy access to structure member offsets. The embedded assembler supports ARM and Thumb states.

Related concepts
7.27 Embedded assembler syntax in C and C++
7.28 Effect of compiler ARM and Thumb states on embedded assembler
7.29 Restrictions on embedded assembly language functions in C and C++ code
7.30 Compiler generation of embedded assembly language functions
7.31 Access to C and C++ compile-time constant expressions from embedded assembler
7.32 Differences between expressions in embedded assembler and C or C++
7.33 Manual overload resolution in embedded assembler
7.34 __offsetof_base keyword for related base classes in embedded assembler
7.35 Compiler-supported keywords for calling class member functions in embedded assembler
7.41 Calling nonstatic member functions in embedded assembler
7.42 Calling a nonvirtual member function
7.43 Calling a virtual member function
Related information
armasm User Guide
Mixing C, C++, and Assembly Language
Non-ConfidentialPDF file icon PDF versionARM DUI0472J
Copyright © 2010-2013 ARM. All rights reserved.