SH-4 Inline Assembly Language (Windows CE 5.0)
Inline assembly language allows you to embed assembly-language instructions directly in your C and C++ source programs without extra assembly and link steps.
The inline assembler is built into the compiler and does not require separate assembly.
Because the inline assembler requires no extra steps, it is sometimes more convenient than using a separate assembler, especially in situations where access to processor resources is required.
The compiler cannot optimize code with inline assembly, but it can fully optimize code that with intrinsic functions. If optimization is important for your program, you should consider using intrinsic functions.
You can use inline assembly to:
- Write functions in assembly language
- Make direct hardware access
- Write prolog and epilog code
See Also
Elements of the SH-4 __asm Block | SH-4 Mode Bits | Branching in SH-4 Inline Assembly | SH-4 Inline Assembly Code Examples
Send Feedback on this topic to the authors