background image

 

 

  

Guide to Cell/B.E. Programming Documentation

 

 

Version 1.0, August 2008 

© 2008 Sony Computer Entertainment Inc. All Rights Reserved. 

Page 6 of 16 

Introductory Documents 

CBE Programming Tutorial 

Cell Broadband Engine Public Information and Downloads 

Length 

190 pages.  

Audience 

C/C++ programmers interested in developing applications or libraries for the Cell/B.E. The document is not intended for 
programmers developing device drivers, compilers, or operating systems.  

Content 

A short overview of the Cell/B.E. hardware organization, programming methods, programming examples, and process 
of writing and debugging programs. The document assumes access to the Cell/B.E.-specific IBM software 
development kit (SDK), 64-bit Linux

®

 OS and standard toolset, and Full System Simulator. The examples in the tutorial 

highlight the general principals required for Cell/B.E. programming, so that a programmer can apply this knowledge to 
other Cell/B.E. development environments. 

Recommended Use 

This is a beginning tutorial, useful during initial attempts to understand the programming process.  

Document Sections 

The tutorial has the following sections: 

1. 

Overview of the Cell Broadband Engine

: A short summary of the Cell/B.E.’s hardware organization and 

programming methods.  

2. 

The PPE and the Programming Process

: A summary of the PowerPC Processor Element (PPE), including registers, 

instruction sets, communication and interoperability with SPEs, and examples of code development and 
debugging on the simulator. 

3. 

Programming the SPEs

: A summary of the Synergistic Processor Elements (SPEs), including registers, memory 

flow controller (MFC), channels, instruction and MFC-command sets, coding and code-porting examples, 
performance analysis, and general programming tips. 

4. 

Programming Models

: Summaries of various programming models, including function offload, device extension, 

computation acceleration, streaming, shared-memory multiprocessor, asymmetric-thread runtime, and user-mode 
thread models. Also a short summary of application frameworks and SPE overlays.  

5. 

The Simulator

: A summary of the IBM Full System Simulator for the Cell Broadband Engine, including basic 

functions, command-line and GUI interfaces, and performance monitoring.  

Recommended Prerequisites 

None. 

Further Details 

See: 

ƒ

 

CBE Programming Handbook

 

ƒ

 

 

Содержание Memory Stick Camera Application Version 1.0

Страница 1: ...Guide to Cell Broadband Engine Programming Documentation Version 1 0 August 2008 ...

Страница 2: ...arranties Nothing in this document shall operate as an express or implied license or indemnity under the intellectual property rights of Sony and SCEI third parties All information contained in this document was obtained in specific environments and is presented as an illustration The results obtained in other operating environments may vary THE INFORMATION CONTAINED IN THIS DOCUMENT IS PROVIDED O...

Страница 3: ...cei co jp e_download html and the IBM website http www 128 ibm com developerworks power cell The Guide summarizes the documentation explaining the relevance of each document to particular Cell B E programming roles and objectives Throughout this Guide and the documentation it summarizes the Cell B E is variously referred to as the Cell Processor Cell Broadband Engine CBE Cell BE or BE Figure 1 Cel...

Страница 4: ...s containing 8 to 128 bit fixed point or single or double precision floating point data types An SPE consists of two main units the SPU which executes instructions and the MFC which controls DMA transfers and related functions In general the term SPU refers to the instruction execution unit and the term SPE refers to either or both of the SPU and MFC However some documents use the terms SPU and SP...

Страница 5: ...he instructions operate The target audience is application and system programmers Application Binary Interface ABI An ABI document describes the interface between compiled software machine or object code and a particular pairing of system software operating system library or other software service and microprocessor hardware The target audience is system programmers Application Programming Interfa...

Страница 6: ...amming process Document Sections The tutorial has the following sections 1 Overview of the Cell Broadband Engine A short summary of the Cell B E s hardware organization and programming methods 2 The PPE and the Programming Process A summary of the PowerPC Processor Element PPE including registers instruction sets communication and interoperability with SPEs and examples of code development and deb...

Страница 7: ...ammers Additional hardware and programming topics for the privilege state supervisor programming environment There are chapters describing the virtual storage environment memory and cache management I O architecture resource allocation PPE interrupts PPE multithreading logical partitions and hypervisors SPE context switching the time base and decrementers software objects and executables SPE loadi...

Страница 8: ...r the PPE 3 Synergistic Processor Element MMIO Registers Registers used by the SPEs 4 BEI I O Command IOC MMIO Registers Registers used by the I O interface controller for commands 5 IOC Address Translation MMIO Registers Registers used by the I O interface controller for address translation 6 Internal Interrupt Controller IIC MMIO Registers Registers used by the internal interrupt controller 7 Me...

Страница 9: ...directives and predefined macro target definitions 2 SPU Low Level Specific and Generic Intrinsics The basic intrinsics and built ins that make the underlying SPU ISA and SPE hardware accessible from the C programming language 3 Composite Intrinsics Intrinsics that can be constructed from a series of low level generic or specific intrinsics 4 Programming Support for MFC Input and Output Utility fu...

Страница 10: ...ntent A math library that takes advantage of the SIMD instructions supported by the PPE and SPEs Recommended Use Browse during first readings of the CBE Programming Handbook and refer to it thereafter as needed during coding of SIMD applications Document Sections The document has the following sections 1 Overview of the SIMD Math Library Library and header files function overviews and special case...

Страница 11: ... registers and memory accessing registers representing data in registers floating point data formats and exception conditions 4 Addressing Modes and Instruction Set Summary A summary of instructions and addressing modes for integer floating point load store flow control processor control memory synchronization and external control operations 5 Cache Model and Memory Coherency The cache model built...

Страница 12: ... Summarizes the instructions set architecture 2 Vector Register Set The software related details about how registers operate 3 Operand Conventions Conventions for storing values in registers and memory accessing registers representing data in registers floating point data formats and exception conditions 4 Addressing Modes and Instruction Set Summary A summary of instructions and addressing modes ...

Страница 13: ...entire compiler or the accompanying library routines Recommended Use Browse after browsing the PowerPC Microprocessor Family The Programming Environments Manual for 64 Bit Microprocessors and refer to it thereafter as needed during coding of PPE software Document Sections The document has the following sections 1 Introduction Summarizes RISC architectures optimizing compilers and assumptions 2 Ove...

Страница 14: ... and generate controls instructions 4 Constant Formation Instructions Descriptions of the immediate load instructions 5 Integer and Logical Instructions Descriptions of the integer logical count form select gather select bits shuffle bytes and related instructions 6 Shift and Rotate Instructions Descriptions of the shift and rotate instructions 7 Compare Branch and Halt Instructions Descriptions o...

Страница 15: ...ails for an SPE assembly language Recommended Use Browse after readings of the CBE Programming Handbook and refer to it thereafter as needed during assembly language coding of SPE applications Document Sections The document has the following sections 1 Introduction Summarizes the contents of the document 2 Instruction Set and Instruction Syntax Descriptions of notation and data formats the instruc...

Страница 16: ... Entertainment SCE PLAYSTATION 3 Developer Network http www scedev net Game Developers Conference GDC http devevents scedev net gdc Sony Computer Entertainment Europe SCEE http www technology scee net Insomniac Games http www insomniacgames com tech techpage php Cell B E Websites Sony Computer Entertainment Inc SCEI http cell scei co jp index_e html Power org http www power org resources devcorner...

Отзывы: