Intrinsic Functions and MIPS Inline Assembly

Intrinsic functions can be used to access machine-level instructions that are not available in C or C++. Using these intrinsics is preferable to using inline assembly; the compiler cannot optimize code with inline assembly, but it can fully optimize code with intrinsic functions.

MIPS supports processor-specific compiler switches /QMR3900, /QMR4100, /QMR4200, /QMR4300, and QMR5400. These switches enable inline assembler instructions that are specific to the associated processor. However, if you use the generic /Oi switch, the compiler ensures that all the inline-assembly in your code is acceptable to any processor that is of the particular ISA level that you have compiled for. If your code is compiled using the generic switch, the compiler will flag non-generic inline assembly with a warning.

See Also

MIPS Device Inline Assembly Language | MIPS Assembly Language Resources | The _asm Keyword in MIPS Inline Assembly | MIPS Inline Assembly Language Examples

 Last updated on Thursday, April 08, 2004

© 1992-2003 Microsoft Corporation. All rights reserved.