| |||||
Technical Support Support Resources
Product Information | C166: GENERATING INSTRUCTIONS USING CERTAIN ADDRESSING MODESInformation in this article applies to:
QUESTIONDoes 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? ANSWERChanging 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. Last Reviewed: Wednesday, August 03, 2005 | ||||
| |||||