R
Chapter 3
MicroBlaze Application Binary Interface
Scope
This document describes MicroBlaze Application Binary Interface (ABI), which is important for developing software in assembly language for the soft processor. The MicroBlaze GNU compiler follows the conventions described in this document. Hence any code written by assembly programmers should also follow the same conventions to be compatible with the compiler generated code. Interrupt and Exception handling is also explained briefly in the document.
Data Types
The data types used by MicroBlaze assembly programs are shown in Table
Table
MicroBlaze data types | Corresponding | Size (bytes) | |
(for assembly programs) | ANSI C data types | ||
| |||
|
|
| |
data8 | char | 1 | |
|
|
| |
data16 | short | 2 | |
|
|
| |
data32 | int | 4 | |
|
|
| |
data32 | long int | 4 | |
|
|
| |
data32 | float | 4 | |
|
|
| |
data32 | enum | 4 | |
|
|
| |
data16/data32 | pointera | 2/4 |
a.Pointers to small data areas, which can be accessed by global pointers are data16.
MicroBlaze Processor Reference Guide | www.xilinx.com | 65 |
UG081 (v6.0) June 1, 2006 |
|