| |||
| Home > Assembler Reference > Command syntax > AAPCS | |||
There is an option to specify whether you are using the Procedure Call Standard for the ARM Architecture (AAPCS):
--apcs qualifier
The AAPCS forms part of the Base Standard Application Binary Interface for the ARM Architecture (BSABI) specification. By writing code that adheres to the AAPCS, you can ensure that separately compiled and assembled modules can work together.
The --apcs option can also specify some attributes
of code sections.
For more information, see the Procedure Call Standard
for the ARM Architecture specification, aapcs.pdf,
in install_directory\Documentation\Specifications\...
AAPCS qualifiers do not affect the code produced by the assembler.
They are an assertion by the programmer that the code in complies
with a particular variant of AAPCS. They cause attributes to be
set in the object file produced by the assembler. The linker uses
these attributes to check compatibility of files, and to select appropriate
library variants.inputfile
Values for are:qualifier
noneSpecifies that does
not use AAPCS. AAPCS registers are not set up. Other qualifiers
are not permitted if you use inputfilenone.
/interworkSpecifies
that the code in is
suitable for ARM and Thumb interworking. See Chapter 5 Interworking
ARM and Thumb in the Developer Guide for information.inputfile
/nointerworkSpecifies that the code in is
not suitable for ARM and Thumb interworking. This is the default.inputfile
/interIs
a synonym for /interwork.
/nointerIs
a synonym for /nointerwork.
/ropiSpecifies
that the content of is
read-only position-independent.inputfile
/noropiSpecifies
that the content of is
not read-only position-independent. This is the default.inputfile
/picIs
a synonym for /ropi.
/nopicIs
a synonym for /noropi.
/rwpiSpecifies
that the content of is
read-write position-independent.inputfile
/norwpiSpecifies
that the content of is
not read-write position-independent. This is the default.inputfile
/pidIs
a synonym for /rwpi.
/nopidIs
a synonym for /norwpi.
/fpicSpecifies
that the content of is
read-only position-independent code that requires FPIC addressing.inputfile
If you specify more than one qualifier,
ensure that there are no spaces or commas between the individual
qualifiers in the list.