|ARM Technical Support Knowledge Articles|
Applies to: C166 C Compiler
Information in this article applies to:
Does the compiler generate assembler instructions with the following address modes?
MOV [-Rw], Rw MOV [Rw+], [Rw] MOV [Rw], [Rw+] MOV Rw, [Rw+] MOV [Rw], [Rw] CMP Rw, [Rw+] XOR Rw, [Rw+] OR Rw, [Rw+] ADD Rw, [Rw+] SUB Rw, [Rw+]
If so, what C instructions/compiler optimizations can be used?
Changing the Memory Model *can* affect the addressing mode used by the compiler, however, the compiler will always generate the instructions necessary to obtain the most efficient method it can.
There is no way to force or coerce the compiler into using specific addressing modes. If it is essential that a particular addressing mode is used, then the only option is to write the assembler by hand.
Article last edited on: 2005-08-03 12:56:51
Did you find this article helpful? Yes No
How can we improve this article?