Xilinx EDK 8.2i manual Scope, Data Types

Models: EDK 8.2i

1 148
Download 148 pages 28.91 Kb
Page 65
Image 65

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 3-1. Data types such as data8, data16, and data32 are used in place of the usual byte, half-word, and word. egister

Table 3-1:Data types in MicroBlaze assembly programs

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

1-800-255-7778

 

Page 65
Image 65
Xilinx EDK 8.2i manual Scope, Data Types