Skip Navigation Links | |
Exit Print View | |
SPARC Assembly Language Reference Manual Oracle Solaris 11.1 Information Library |
2. Executable and Linking Format
3. Directives and Pseudo-Operations
6.4 Functions Returning Values
6.4.1 Limitations for 32-Bit Code
6.4.2 Limitations for Both 32-Bit and 64-Bit Code
7. Assembler Inline Functions and __asm Code
A. Using the Assembler Command Line
This chapter outlines the basic design of an assembly language function that can be called from a C program. In order for an assembly language program to interoperate with a C program or the C library functions or the operating system calls, certain conventions about register usage, stack usage, parameter passing, and returning values must be followed. These agreed-to conventions are referred to as the Application Binary Interface, the ABI.