Debian Codegraph @

debian/man/ssadump.1

raw
1 .\" Hey, EMACS: -*- nroff -*-
2 .de Vb \" Begin verbatim text
3 .ft CW
4 .nf
5 .ne \\$1
6 ..
7 .de Ve \" End verbatim text
8 .ft R
9 .fi
10 ..
11 .TH SSADUMP 1 "2013-12-02"
12 .\" Please adjust this date whenever revising the manpage.
13 .SH NAME
14 ssadump \- a tool for displaying and interpreting the SSA form of Go programs
15 .SH SYNOPSIS
16 .B ssadump
17 .RI [ flags ]
18 .IR "args ..."
19 .SH DESCRIPTION
20
21 SSA builder and interpreter.
22
23 When -run is specified, ssadump will find the first package that
24 defines a main function and run it in the interpreter.
25 If none is found, the tests of each package will be run instead.
26
27 .SH OPTIONS
28
29 .TP
30 .B \-build
31 Options controlling the SSA builder.
32 The value is a sequence of zero or more of these letters:
33
34 .Vb 6
35 \&C perform sanity [C]hecking of the SSA form.
36 \&D include [D]ebug info for every function.
37 \&P log [P]ackage inventory.
38 \&F log [F]unction SSA code.
39 \&S log [S]ource locations as SSA builder progresses.
40 \&G use binary object files from gc to provide imports (no code).
41 \&L build distinct packages seria[L]ly instead of in parallel.
42 \&N build [N]aive SSA form: don't replace local loads/stores with registers.
43 .Ve
44
45 .TP
46 .B \-cpuprofile
47 write cpu profile to file
48
49 .TP
50 .B \-interp
51 Options controlling the SSA test interpreter.
52 The value is a sequence of zero or more more of these letters:
53 .Vb 6
54 \&R disable [R]ecover() from panic; show interpreter crash instead.
55 \&T [T]race execution of the program. Best for single-threaded programs!
56 .Ve
57
58 .TP
59 .B \-run
60 Invokes the SSA interpreter on the program.
61
62 .SH EXAMPLES
63
64 Quickly dump SSA form of a single package:
65
66 .Vb 6
67 \& ssadump -build=FPG hello.go
68 .Ve
69
70 Interpret a program, with tracing:
71
72 .Vb 6
73 \& ssadump -run -interp=T hello.go
74 .Ve
75
76 Interpret the unicode package's tests, verbosely:
77
78 .Vb 6
79 \& ssadump -run unicode -- -test.v
80 .Ve
81
82 .SH AUTHOR
83 .PP
84 This manual page was written by Michael Stapelberg <[email protected]>,
85 for the Debian project (and may be used by others).