1.3.5. Using the AAPCS

The Procedure Call Standard for the ARM Architecture (AAPCS) defines register usage and stack conventions that must be followed to enable separately compiled and assembled modules to work together. There are a number of variants on the base standard. The ARM compiler always generates code that conforms to the selected AAPCS variant. The linker selects an appropriate standard C or C++ library to link with, if required.

When developing code for ARM processors, you must select an appropriate AAPCS variant, for example:

For more information, see the Procedure Call Standard for the ARM Architecture specification, aapcs.pdf, in install_directory\Documentation\Specifications\...


If you are mixing C and assembly language, ensure that you understand the AAPCS implications.

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