Go to main content

SPARC Assembly Language Reference Manual

Exit Print View

Updated: October 2017
 
 
Chapter 7

Assembler Inline Functions and __asm Code

This chapter discusses how to use the C or C++ compiler to create inline functions and __asm assembler code. Inline templates and the C/C++ __asm statement provide a way to insert assembler code into a C or C++ program. The assembler code is processed by the compiler's code generator, and not the SPARC assembler. However, the syntax recognized by the compilers is similar to the SPARC Assembler syntax. This chapter describes how inline templates and __asm statements can be used effectively.