Ski IA-64 Simulator Reference Manual 1.0L

Figure 1-15. The Breakpoint List Window

1.2.9Running a Program

To run your program, type the “ run” command or click the Run button in the Main Window. Ski will start the simulation and connect the program’s standard I/O ports (stdin, stdout, and stderr) to Ski’s standard ports. For example, assuming there are no breakpoints still set in hello, you will see “hello world” printed out when you run it, as Figure 1-16shows, and run statistics will appear in the Main Window, as Figure 1-17shows. The statistics tell you how many instructions were simulated and how much time it took, the instructions-per-second rate, the number of IA-64 processor cycles that were consumed on the simulated CPU, and the average number of instructions per cycle, which provides an indication of the best-case effective parallelism of the program. (Ski simulates all the instructions in an instruction group in one cycle; a hardware implementation may not be as capable.)

Ski will stop the simulation for three reasons: if a breakpoint is reached, if the IA-64 program attempts to access privi- leged resources or non-existent memory, or if the program ends normally by calling exit() or similar functions. If simula- tion stops due to a breakpoint, you can continue simulation with the “ cont” command (“ continue”) or you can step through the simulation with the “ step” command or Step button. You cannot re-run a program, nor can you re-load it and start over. You must exit and re-enter xski and then reload your program.

Copyright © 2000 Hewlett-Packard Co.

Getting Started: A Ski Tutorial 1-11

Page 23
Image 23
HP IA-64, Ski Simulator manual Running a Program, The Breakpoint List Window