4. Debugging and Simulating Applications

You’ve compiled and run your application, but the development process doesn’t end there. If runtime errors crop up, you need a way to step through the executable and determine which lines of code produced the errors. The SDK provides two debuggers for this purpose: ppu-gdb and spu-gdb, and both closely resemble GNU’s gdb debugger.

Even if the application runs without errors, it might not meet performance requirements. In this case, you need to locate problems like pipeline stalls, branch miss percentages, and direct memory access (DMA) bus overload. No debugger can give you these statistics, but IBM’s Full-System Simulator for the Cell processor, called SystemSim, provides all this information and more. ...

Get Programming the Cell Processor: For Games, Graphics, and Computation now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.