Inc. Typewriter User Manual

MicroBlaze Processor Reference Guide www.xilinx.com 65
UG081 (v6.0) June 1, 2006 1-800-255-7778
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
MicroBlazeGNUcompilerfollowstheconventionsdescribedinthis 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 typesused byMicroBlaze assembly programs are shown in Table 3-1.Data types
such as data8, data16, and data32 are used in place of the usual byte, half-word, and
word.r egister
Table 3-1: Data types in MicroBlaze assembly programs
MicroBlaze data types
(for assembly programs)
Corresponding
ANSI C data types
Size (bytes)
data8 char 1
data16 short 2
data32 int 4
data32 long int 4
data32 float 4
data32 enum 4
data16/data32 pointer
a
a.Pointers to small data areas, which can be accessed by global pointers are
data16.
2/4