Справочник Пользователя для HP (Hewlett-Packard) IA-64

Скачать
Страница из 110
Copyright © 2000 Hewlett-Packard Co.
Getting Started: A Ski Tutorial
1-13
Ski IA-64 Simulator Reference Manual 1.0L
the Main Window. Ski tells you why it stopped and gives you statistics about program execution up to this point, as you
can see in Figure 1-18. The Program Window marks the next instruction to be fetched with a greater-than symbol in the
second column. If the instruction is predicated off, Ski uses an asterisk instead of a greater-than symbol, and shows the
predication register in parentheses.
Move and resize your windows so the Main Window and Program Window don’t overlap. Now use the “
step
” command
or
Step
button to execute one instruction. Note that the greater-than symbol moves down one line: Ski keeps track of IA-
64 bundles and groups but it simulates individual instructions. You can follow the “
step
” command with a (decimal)
number to specify how many steps Ski should take, for example, “
step 10
” to execute ten instructions. As a shortcut,
shift-clicking on the
Step
button causes Ski to take ten steps. Most Ski commands can be abbreviated, as described in
step
 command can be abbreviated as “
s
”.
1.2.11
Changing Registers and Memory
To debug a program, you usually need to inspect and alter registers and memory. The first three panes in the Register Win-
dow shows the registers of most concern to application programmers: user registers in the first pane, general registers in
the second pane, and floating point registers in the third pane, as you can see in Figure 1-19.
Figure 1-18. The Main Window After Reaching the Breakpoint at main+10