30.01.2013 Views

TotalView Users Guide - CI Wiki

TotalView Users Guide - CI Wiki

TotalView Users Guide - CI Wiki

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Starting the CLI<br />

This two-step operation of loading and running lets you set action points<br />

before execution begins. It also means that you can execute a program<br />

more than once. At a later time, you can use the drerun command to<br />

restart your program, perhaps sending it new command-line arguments. In<br />

contrast, reentering the dload command tells the CLI to reload the program<br />

into memory (for example, after editing and recompiling the program). The<br />

dload command always creates new processes. This means that you get a<br />

new process each time the CLI executes it. The CLI does not, however,<br />

remove older ones.<br />

The dkill command terminates one or more processes of a program started<br />

by using a dload, drun, or drerun command. The following example continues<br />

where the previous example left off:<br />

d1. dkill # kills process<br />

d1. drun # runs program from start<br />

d1. dlist –e –n 3 # shows lines about current spot<br />

79<br />

80@> do 40 i = 1, 500<br />

81 denorms(i) = x'00000001'<br />

d1. dwhat master_array # Tell me about master_array<br />

In thread 1.1:<br />

Name: master_array; Type: integer(100);<br />

Size: 400 bytes; Addr: 0x140821310<br />

Scope: ##arraysAlpha#arrays.F#check_fortran_arrays<br />

(Scope class: Any)<br />

Address class: proc_static_var<br />

(Routine static variable)<br />

d1. dgo # Start program running<br />

d1. dwhat denorms # Tell me about denorms<br />

In thread 1.1:<br />

Name: denorms; Type: ; Size: 8 bytes;<br />

Addr: 0x1408214b8<br />

Scope: ##arraysAlpha#arrays.F#check_fortran_arrays<br />

(Scope class: Any)<br />

Address class: proc_static_var<br />

(Routine static variable)<br />

d1. dprint denorms(0) # Show me what is stored<br />

denorms(0) = 0x0000000000000001 (1)<br />

d1.<br />

Because information is interleaved, you may not realize that the prompt<br />

has appeared. It is always safe to use the Enter key to have the CLI redisplay<br />

its prompt. If a prompt isn’t displayed after you press Enter, you know<br />

that the CLI is still executing.<br />

204 Chapter 10: Using the CLI

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!