1.3.3. Mixing C, C++, and assembly language

You can mix separately compiled and assembled C, C++, and ARM assembly language modules in your program. You can write small assembly language routines within your C or C++ code. These routines are compiled using the inline or embedded assembler of the ARM compiler. However, there are a number of restrictions to the assembly language code you can write if you are using the inline or embedded assembler. These restrictions are described in the chapter on inline and embedded assemblers in RealView Compilation Tools v3.0 Compiler and Libraries Guide.

In addition, Chapter 5 Mixing C, C++, and Assembly Language gives general guidelines and examples of how to call between C, C++, and assembly language modules.

Copyright © 2002-2006 ARM Limited. All rights reserved.ARM DUI 0203G