Guide to Cell/B.E. Programming Documentation© 2008 Sony Computer Entertainment Inc. All Rights Reserved. Version 1.0, August 2008Page 13 of 16The PowerPC™ Compiler Writer’s GuideCell Broadband Engine Public Information and Downloadshttp://cell.scei.co.jp/e_download.htmlLength264 pages.AudienceAlthough the title indicates an audience of compiler writers, the document is useful to all assembly-languageprogrammers who wish to optimize performance of application or system programs for the PPE.ContentThis guide describes, mainly by coding examples from IBM’s most experienced compiler developers, the code patternsthat perform well on PowerPC processors. It will be particularly helpful to compiler developers and application-codespecialists who are already familiar with optimizing compiler technology and are looking for ways to exploit thePowerPC architecture. It will also be helpful to application programmers who need to understand and tune the outputof PowerPC compilers. The guide focuses only on a complier’s generation of efficient PowerPC back-end code; it doesnot attempt to teach how to write an entire compiler or the accompanying library routines.Recommended UseBrowse after browsing the PowerPC Microprocessor Family: The Programming Environments Manual for 64-BitMicroprocessors and refer to it thereafter as needed during coding of PPE software.Document SectionsThe document has the following sections:1. Introduction: Summarizes RISC architectures, optimizing compilers, and assumptions.2. Overview of the PowerPC Architecture: Summarizes the PowerPC application environment and instruction set.3. Code Selection: How to choose optimal code for control-flow, integer and string operations, and floating-pointoperations.4. Implementation Issues: Hardware implementations, hazards, scheduling, and alignment.5. Clever Examples: A collection of common algorithms implemented in efficient assembly code.There are also appendices describing application binary interface (ABI) considerations, early PowerPC 6xx hardwareimplementations, PowerPC instruction-usage statistics, and optimal code sequences.Recommended PrerequisitesRead or browse: CBE Programming Handbook PowerPC Microprocessor Family: The Programming Environments Manual for 64-Bit Microprocessors PowerPC™ Microprocessor Family: Vector/SIMD Multimedia Extension Technology ProgrammingEnvironments ManualFurther DetailsSee: PowerPC Architecture Books I, II, and III