PowerPC: Concepts, Architecture and Design
From the originals
13 scansMachine-transcribed text and image descriptions. Check the linked original for uncertain words or fine print.
These are transcribed pages from the documents, not the full publications. Open the original for the remaining pages.
Image 1
J. Ranade Workstation Series PowerPC Concepts, Architecture, and Design DIPTO CHAKRAVARTY CASEY CANNON
A book cover with a colorful pixelated diagonal-pattern background in yellow, red, black, purple and green, a blue band across the top carrying the series name, and a green central panel with large yellow title type and a purple author banner.
Reading notes: Series name at top is in italic serif type on a blue band and is read as 'J. Ranade Workstation Series'. Author names are printed in white capitals on a purple banner beneath the title panel.
- Languages
- English
PDF page 1
J. Ranade Workstation Series PowerPC Concepts, Architecture, and Design DIPTO CHAKRAVARTY CASEY CANNON
A book cover with a colorful pixelated geometric pattern of yellow, red, black, green, and purple diamonds, with a green title panel containing large yellow 'PowerPC' lettering, a subtitle, and a purple author band across the lower middle, and a blue top band with the series name.
Reading notes: The cover is a book cover rather than an advertisement; transcription follows the printed text as shown.
- Languages
- English
PDF page 2
The image is a fully blank white page with no artwork, layout elements, or visible marks.
Reading notes: No visible text found; the page appears entirely blank.
PDF page 3
J. Ranade Workstation Series CHAKRAVARTY • Power RISC System I 6000: Concepts, Facilities, and Architec- ture, 0-07-011047-6 CHAKRAVARTY/CANNON • PowerPC: Concepts, Architecture, and Design, 0-07-011192-8 DEROEST • AIX for RS I 6000: System and Administration Guide, 0-07-036439-7 HENRY/GRAHAM • Solaris 2.X System Administrator's Guide, 0-07-029368-6 JOHNSTON • OS I 2 Connectivity and Networking: A Guide to Communication Manager I 2, 0-07-032696- 7 LAMB • MicroFocus Workbench and Toolset Developer's Guide, 0-07-036123-3 LEININGER • UNIX Developer's Tool Kit, 0-07-911646-9 LOCKHART • OSF DCE: Guide to Developing Distributed Applications, 0-07-911481-4 RANADEIZAMIR • C++Primer for C Programmers, 2/e, 0-07-051487-9 SANCHEz!CANTON • Graphics Programming Solutions, 0-07-911464-4 SANCHEz/CANTON • High Resolution Video Graphics, 0-07-911646-9 SANCHEzlCANTON • PC Programmer's Handbook, 2/e, 0-07-54948-6 WIGGINS • The Internet for Everyone: A Guide for Users and Providers, 0-07-067019-8 Th order or receive additional information on these or any other McGraw-Hill titles, in the United States please call 1-800-822-8158. In other countries, contact your local McGraw-Hill representative. BC14BCZ
Reading notes: Series heading 'J. Ranade Workstation Series' and author names contain OCR-like character noise (e.g., 'SANCHEz!CANTON', 'RANADEIZAMIR'), spelled as printed. Several ISBN-style identifiers repeat or contain irregular characters; not extracted as product names. Opening line 'Th order' appears to be a damaged 'To order'; reading order of trailing contact text is uncertain.
- Printed product names
- PowerPC: Concepts, Architecture, and Design · Solaris 2.X System Administrator's Guide · MicroFocus Workbench and Toolset Developer's Guide · UNIX Developer's Tool Kit · OSF DCE: Guide to Developing Distributed Applications · C++ Primer for C Programmers, 2/e · Graphics Programming Solutions · High Resolution Video Graphics · PC Programmer's Handbook, 2/e · The Internet for Everyone: A Guide for Users and Providers
- Languages
- English
PDF page 4
Power PC Concepts, Architecture, and Design
Power PC Concepts, Architecture, and Design Dipto Chakravarty Casey Cannon McGraw-Hill, Inc. New York San Francisco Washington, D.C. Auckland Bogota Caracas Lisbon London Madrid Mexico City Milan Montreal New Delhi San Juan Singapore Sydney Tokyo Toronto
- Languages
- English
PDF page 5
PowerPC : concepts, architecture, and design
ToBapi -D.C. To my family for their enthusiasm and to Don Meyer for his encouragement -C.C. Library of Congress Cataloging-in-Publication Data Chakravarty, Dipto. PowerPC : concepts, architecture, and design I Dipto Chakravarty, Casey Cannon. p. cm. - (J. Ranade workstation series) Includes bibliographical references. ISBN 0-07-011192-8 1. PowerPC (Microprocessor) I. Title. II. Series. QA76.8.P67C48 1994 004.165-dc20 94-19135 CIP Copyright© 1994 by McGraw-Hill, Inc. All rights reserved. Printed in the United States of America. Except as permitted under the United States Copyright Act of 1976, no part of this publication may be reproduced or distributed in any form or by any means, or stored in a data base or retrieval system, without the prior writ- ten permission of the publisher. 1 2 3 4 5 6 7 8 9 0 DOH/DOH 9 0 9 8 7 6 5 4 ISBN 0-07-011192-8 The sponsoring editor for this book was Jerry Papke and the production supervisor was Pamela A. Pelton. This book was set in Century Schoolbook by North Market Street Graphics. Printed and bound by R. R. Donnelley & Sons Company. LIMITS OF LIABILITY AND DISCLAIMER OF WARRANTY The author and publisher have exercised care in preparing this book and the pro- grams contained in it. They make no representation, however, that the programs are error-free or suitable for every application to which the reader may attempt to apply them. The author and publisher make no warranty of any kind, expressed or implied, including the warranties of merchantability or fitness for a particular purpose, with regard to these programs or the documentation or theory contained in this book, all of which are provided "as is." The author and publisher shall not be liable for damages in amount greater than the purchase price of this book, or in any event for incidental or consequential damages in connection with, or aris- ing out of the furnishing, performance, or use of these programs or the associated descriptions or discussions. Readers should test any program on their own systems and compare results with those presented in this book. They should then construct their own test pro- grams to verify that they fully understand the requisite calling conventions and data formats for each of the programs. Then they should test the specific applica- tion thoroughly.
Reading notes: Dates such as 1994 and 1976 appear within copyright and cataloging text; the printed string '94-19135' is a catalog control number rather than a date.
- Printed product names
- PowerPC
- Printed dates
- 1994 · 1976 · 94-19135 · 9 8 7 6 5 4
- Languages
- English
PDF page 6
Trademarks Alpha and VAX are trademarks of Digital Equipment Corporation. AFS and Transarc are trademarks of Transarc Corporation. AIXwindows and AIXwindows Interface Composer/6000 are trademarks of International Busi- ness Machines Corporation. AIX 3278/79 Emulation/6000 is a trademark of International Business Machines Corporation. Apple, Appletalk, and Finder are trademarks of Apple Computer Corp. C Set ++ is a trademark of International Business Machines Corporation. CICS is a trademark oflnternational Business Machines Corporation Ethernet is a trademark of Xerox Corporation. GL and Graphics Library are trademarks of Silicon Graphics, Inc. HP is a registered trademark of Hewlett-Packard. HP Precision Architecture and Laserjet are trademarks of Hewlett-Packard. InfoExplorer is a trademark of International Business Machines Corporation. Macintosh is a trademark of Apple Computer Corp. Microsoft is a trademark of Microsoft Corporation. Motorola and Motorola 88110 are trademarks of Motorola, Inc. Micro Channel is a registered trademark of International Business Machines Corporation. MIPS is a registered trademark of MIPS Computer Systems, Inc. MS-DOS is a trademark of Microsoft Corporation. NETBIOS is a trademark oflnternational Business Machines Corporation. NFS and Sun OS are trademarks of Sun Microsystems, Inc. OPEN LOOK is a trademark of AT&T. Open Software Foundation, OSF, OSF/Motif and Motif are trademarks of Open Software Foun- dation, Inc. Pentium is a trademark of Intel Corporation. POSIX is a trademark of the Institute of Electrical and Electronic Engineers (IEEE). POWER Architecture is a trademark of International Business Machines Corporation. PowerOpen is a trademark of International Business Machines Corporation. PowerPC, PowerPC Architecture, POWERserver, POWERstation are trademarks oflnterna- tional Business Machines Corporation. PowerPC 601, PowerPC 603, PowerPC 604, and PowerPC 620 are trademarks of International Business Machines Corporation. RISC System/6000 is a trademark of International Business Machines Corporation. RT and RT PC are trademarks of International Business Machines Corporation. SPARC is a registered trademark of SPARC International, Inc. Taligent is a registered trademark ofTaligent, Inc. UNIX is licensed by and is a registered trademark of UNIX System Laboratories, Inc. Wabi is a trademark of Sun Microsystems, Inc. X Window System is a trademark of Massachusetts Institute of Technology Xll is a trademark of Massachusetts Institute of Technology. XPG3 is a trademark ofX/OPEN Company Limited. v
Reading notes: Several trademark names contain irregular spacing and line-break hyphenation (e.g., 'oflnternational', 'Taligent, Inc.', 'Sun OS'), which may affect exact spelling.
- Printed product names
- Alpha · VAX · AFS · Transarc · AIXwindows · AIXwindows Interface Composer/6000 · AIX 3278/79 Emulation/6000 · Apple · Appletalk · Finder · C Set ++ · CICS · Ethernet · GL · Graphics Library · HP · HP Precision Architecture · Laserjet · InfoExplorer · Macintosh · Microsoft · Motorola · Motorola 88110 · Micro Channel · MIPS · MS-DOS · NETBIOS · NFS · Sun OS · OPEN LOOK · Open Software Foundation · OSF · OSF/Motif · Motif · Pentium · POSIX · POWER Architecture · PowerOpen · PowerPC · PowerPC Architecture · POWERserver · POWERstation · PowerPC 601 · PowerPC 603 · PowerPC 604 · PowerPC 620 · RISC System/6000 · RT · RT PC · SPARC · Taligent · UNIX · Wabi · X Window System · Xll · XPG3
- Languages
- English
PDF page 7
Preface xv Acknowledgments xix Chapter 1. Introduction 1.1 Overview of the PowerPC 1.2 PowerOpen Environment 1.3 PowerOpen Association 1.4 POWER to PowerPC Architecture 1.5 POWER-PowerPC Deltas 1.6 PowerPC Performance 1.6.1 Why the RISC-based PowerPC Is Faster 1.6.2 601 Microprocessor 1.6.3 603 Microprocessor 1.6.4 604 Microprocessor 1.6.5 620 Microprocessor 1.6.6 601 versus the Pentium 1.7 System Environment Overview 1.7.1 PowerOpen ABI and API 1.7.2 International Language Support 1.8 Summary Part 1 Hardware Chapter 2. RISC Technology 2.1 Evolution of RISC 2.2 RISC Characteristics 2.2.1 Load-Store Architecture 2.2.2 Fixed-length Instructions 2.2.3 Hardwired Control 2.2.4 Fused Instructions 2.2.5 Pipelined Implementation 2.3 Superscalar Implementation 2.4 RISC/CISC Tradeoffs 2.5 Effect of Pipelining 2.6 Reduced Instruction Set Cycles 2.7 Summary Contents 1 2 3 4 5 7 8 8 8 9 10 11 13 14 14 15 19 19 20 20 20 21 21 22 27 28 28 29 29 vii
Reading notes: Page numbers in the table of contents may be misaligned with headings in the supplied text.
- Languages
- English
PDF page 8
viii Contents Chapter 3. Architectural Definition 31 3.1 Evolutionary Road Map of PowerPC 31 3.2 The PowerPC Instruction Set 33 3.3 The 32-bit PowerPC Architecture 34 3.3.1 Instruction Set Architecture 34 3.3.2 Virtual Environment Architecture 41 3.3.3 Operating Environment Architecture 45 3.4 The 64-bit PowerPC Architecture 53 3.4.1 Instruction Set Architecture 53 3.4.2 Virtual Environment Architecture 56 3.4.3 Operating Environment Architecture 59 3.5 Timer Facilities 67 3.6 Summary 68 Chapter 4. Processor Implementations 69 4.1 Understanding the Common CPU Model 69 4.2 The POWER RS 1 Microprocessor 70 4.2.1 Organization 70 4.2.2 Instruction Cache 72 4.2.3 Data Cache 73 4.2.4 Fixed-point Unit 73 4.2.5 Floating-point Unit 74 4.2.6 Packaging 75 4.3 The POWER RS .9 Microprocessor 76 4.3.1 Organization 77 4.3.2 Instruction Cache 77 4.3.3 Data Cache 77 4.3.4 Fixed-point Unit 79 4.3.5 Floating-point Unit 79 4.3.6 Packaging 79 4.4 The POWER RSC Microprocessor 80 4.4.1 Organization 80 4.4.2 Cache 81 4.4.3 Branch Processing and Instruction Fetch Unit 82 4.4.4 Instruction Queue and Dispatch Unit 83 4.4.5 Fixed-point Unit 83 4.4.6 Floating-point Unit 83 4.4.7 Memory Management Unit 83 4.4.8 Memory Interface Unit 84 4.4.9 Sequencer Unit 84 4.4.10 Packaging 84 4.5 The PowerPC 601 Microprocessor 84 4.5.1 Pipelines 85 4.5.2 Organization 86 4.5.3 Instruction Queue and Dispatch Unit 87 4.5.4 Instruction Fetch Unit 87 4.5.5 Branch Processing Unit 87 4.5.6 Fixed-point Unit 88 4.5.7 Floating-point Unit 88 4.5.8 Memory Management Unit 88 4.5.9 Cache 89 4.5.10 Memory Queue 90 4.5.11 Bus Interface 90 4.5.12 Sequencer Unit 90
Reading notes: "POWER RS .9" may be a typographic variant of "POWER RS 9"; spelling preserved as printed. Heading "Contents" is a table-of-contents page; no product advertising present.
- Printed product names
- POWER RS 1 · POWER RS .9 · POWER RSC · PowerPC 601
- Languages
- English
PDF page 9
4.5.13 Multiprocessor Capabilities 4.5.14 Packaging 4.6 The PowerPC 603 Microprocessor 4.6.1 Pipelines 4.6.2 Organization 4.6.3 Instruction and Data Caches 4.6.4 Instruction Fetch and Branch Unit 4.6.5 Dispatcher Unit 4.6.6 Completion/Exception Unit 4.6.7 Fixed-Point Unit 4.6.8 Floating-Point Unit 4.6.9 Load/Store Unit 4.6.10 System Unit 4.6.11 Bus Interface Unit 4.6.12 Packaging and Power Management 4.7 The PowerPC 604 Microprocessor 4.7.1 Pipelines 4.7.2 Organization 4.7.3 Packaging 4.8 The PowerPC 620 Microprocessor 4.9 PowerPC Embedded Processors 4.9.1 The Embedded Controller 403 4.10 Summary Part 2 Software Chapter 5. User Interfaces 5.1 Common Desktop Environment 5.1.1 Overview 5.1.2 Getting Started with Common Desktop Environment 5.1.3 Common Desktop Environment Services 5.2 Wabi 5.2.1 Overview 5.2.2 Wabi Capabilities and Functions 5.2.3 Getting Started with Wabi 5.3 X Window System 5.3.1 AIXwindows Environment 5.3.2 AIXwindows 3-D 5.3.3 AIXwindows Interface Composer 5.4 Macintosh Application Services 5.4.1 Overview 5.4.2 Capabilities and Functions 5.4.3 Getting Started with Macintosh Application Services 5.5 Summary Chapter 6. Operating Systems 6.1 PowerOpen Application Binary Interface 6.2 AIX 6.2.1 AIX Personal Productivity Client Configuration 6.2.2 Operating Environment 6.2.3 End-user Environment 6.2.4 Optimizing AIX Contents ix 90 91 92 93 94 95 95 96 96 97 97 97 97 98 98 98 98 98 99 99 100 102 103 107 108 108 108 111 118 118 119 120 124 126 127 127 128 128 128 129 131 133 134 135 135 136 140 145
Reading notes: Source is a table of contents with page numbers; no advertised products or prices are present, so productNames lists only technical product and component names.
- Printed product names
- PowerPC 603 · PowerPC 604 · PowerPC 620 · PowerPC Embedded Processors · Embedded Controller 403 · Common Desktop Environment · Wabi · X Window System · AIXwindows · AIXwindows 3-D · AIXwindows Interface Composer · Macintosh Application Services · PowerOpen Application Binary Interface · AIX
- Languages
- English
PDF page 10
x Contents 6.3 Tali gent 147 6.3.1 Mlcrokernel Paradigm 148 6.3.2 Operating Environment 149 6.3.3 End-user Environment 150 6.4 Solaria 150 6.4.1 Operating Environment 151 6.4.2 End-user Environment 152 6.5 Windows NT 153 6.5.1 End-user Environment 154 6.5.2 Operating Environment 155 6.6 Workplace OS 160 6.6.1 Operating Environment 160 6.6.2 End-user Environment 161 6.7 Summary 161 Chapter 7. Development Tools 163 7.1 Compilers 163 7.1.1 XLCComplier 163 7.1.2 C Set++ Complier 165 7.1.3 AIX XL FORTRAN and Pascal Compliers 165 7.2 Assembler 166 7.3 Debuggers 167 7.3.1 adb 167 7.3.2 fsdb 168 7.3.3 dbxand xde 170 7.3.4 Kernel Debug Program 172 7.3.5 Trace Facility 174 7.4 Source Code Analysis Tools 175 7.4.1 lint 175 7.4.2 cf low 175 7.4.3 cxref 175 7.5 Lexical Analyzer-lex 176 7.6 Parser Generator-yacc 176 7.7 Pattern Matching Language 176 7.7.1 awk 176 7.7.2 sed 177 7.8 Macro Processor-m4 178 7.9 Program Modules Management 178 7.9.1 make 178 7.9.2 imake 179 7.10 Source Code Control System 180 7.11 AIX Performance Tools 181 7.11.1 Monitoring Tools 181 7.11.2 Analysis Tools 188 7.11.3 Tuning Tools 199 7.12 Summary 200 Chapter 8. Standardization and Connectivity 203 8.1 Standardization 203 8.1.1 Compatibility Standards 203 8.1.2 Portablllty Standards 204 8.1.3 Interoperability Standards 209
Reading notes: Table of contents entries contain OCR-style spacing and spelling irregularities (e.g., 'Tali gent', 'XLCComplier', 'C Set++ Complier', 'Portablllty Standards') Several entries may be misspelled in source, such as 'Complier' for 'Compiler' and 'Solaria' heading placement is uncertain
- Printed product names
- AIX · XL FORTRAN · Pascal · Solaria · Windows NT · Workplace OS · Tali gent · XLCComplier · C Set++ Complier · adb · fsdb · xde · lint · cxref · lex · yacc · awk · sed · m4 · make · imake
- Languages
- English
PDF page 11
8.2 Connectivity 8.2.1 Connectivity with Peer UNIX Machines 8.2.2 Connectivity with Host Machines 8.2.3 Connectivity and Access to PC-DOS 8.3 Summary Chapter 9. Design of AIX: A PowerOpen Implementation 9.1 Components of the Kernel 9.2 Functions of the Kernel 9.3 Kernel Services 9.3.1 System Calls 9.3.2 Kernel Faclllties 9.4 Distinguishing Features of the AIX Kernel 9.5 Extending the Kernel 9.6 Programs, Processes, and Process Groups 9.7 AIX Notifiers 9.8 Internal Representation of Files 9.8.1 File Types 9.8.2 lnode and In-core lnodes 9.8.3 File Links 9.8.4 Files to File System Relationship 9.9 Buffer Cache 9.10 Summary Chapter 1 o. AIX Process Subsystem Internals 10.1 The Difference Between a Program and a Process 10.2 Process Structure 10.3 Process-affiliated Kernel Structures 10.4 Process States 10.5 Priority Handling 10.6 Context Switching 10.7 Process Scheduling 10.8 The Thread Paradigm 10.8.1 Thread-afflllated Kernel Structures 10.8.2 Thread States 10.8.3 plds and tids 10.8.4 Context Switching 10.8.5 Scheduling 10.9 Process Monitoring 10.10 Interrupt and Exception Handling 10.11 Interprocess Communication 10.11.1 Pipes 10.11.2 Message Queues 10.11.3 Shared Memory 10.11.4 Semaphores 10.11.5 Sockets 10.11.6 Streams 10.12 Summary Contents xi 223 223 226 228 229 231 231 233 233 233 235 241 245 246 248 252 252 253 253 254 257 259 261 261 262 263 264 266 268 269 271 272 273 275 275 276 277 280 282 282 283 284 285 286 287 290
Reading notes: Table of contents with OCR damage (e.g., 'Faclllties', 'lnode', 'plds') and uncertain character recognition Page numbers listed without clear mapping to entries
- Languages
- English