Download E500ABIUG: PowerPC e500 Application Binary Interface User's Guide

Transcript
Freescale Semiconductor, Inc.
Contents
Paragraph
Section
Number
Number
Title
Title
Page
Page
Number
Number
Freescale Semiconductor, Inc...
Chapter 1
Introduction
1.1
1.2
1.3
1.4
1.5
1.6
The e500 Processor and the System V ABI ......................................................... 1-1
How to Use the e500 Processor ABI Supplement ............................................... 1-1
Compatibility with other ABIs............................................................................. 1-2
Evolution of the ABI Specification ...................................................................... 1-2
Acknowledgements.............................................................................................. 1-3
References............................................................................................................ 1-3
Chapter 2
Low-Level System Information
2.1
2.1.1
2.1.2
2.1.2.1
2.1.2.2
2.1.2.3
2.1.2.4
2.2
2.2.1
2.3
2.3.1
2.3.2
2.3.3
2.3.4
2.3.4.1
2.3.4.2
2.3.5
2.3.5.1
2.3.5.1.1
2.3.5.1.2
2.3.5.2
2.3.5.2.1
Machine Interface ................................................................................................ 2-1
Processor Architecture ..................................................................................... 2-1
Data Representation......................................................................................... 2-2
Byte Ordering .............................................................................................. 2-2
Fundamental Types ...................................................................................... 2-3
Aggregates and Unions................................................................................ 2-6
Bit Fields.................................................................................................... 2-10
Function Calling Sequence ................................................................................ 2-14
Registers......................................................................................................... 2-15
The Stack Frame ................................................................................................ 2-17
Parameter Passing .......................................................................................... 2-20
Variable Argument Lists ................................................................................ 2-23
Return Values ................................................................................................. 2-23
Summary of Float, Double, Short, and Char Argument and Return Value
Handling .................................................................................................... 2-24
Float Argument and Return Value Summary ............................................. 2-24
Short and Char Argument and Return Value Summary ............................. 2-25
Stack Frame Examples................................................................................... 2-25
Simple Function......................................................................................... 2-25
Minimal Stack Frame: No Local Variables or Saved Parameters .......... 2-25
Local Variables or Saved Parameters Only............................................ 2-25
Functions that Save Nonvolatile Registers ................................................ 2-26
Function with No 64-Bit Nonvolatile Usage ......................................... 2-26
Contents
For More Information On This Product,
Go to: www.freescale.com