SSADUMP(1)
π SSADUMP π
ok so bestie, meet ssadump β she's a whole tool for showing you and interpreting the SSA form of Go programs. yes. the SSA form. the β¨vibesβ¨ version of your code. she lives in the General Commands Manual, section 1, and she is so iconic for it.
β¨ SYNOPSIS β¨
ssadump [flags] args ...
π¦ DESCRIPTION π¦
She's an SSA builder and interpreter, periodt. like that's the job, that's the whole thing, and she ate.
When -run is specified, ssadump will find the first package that defines a main function and run it in the interpreter πβοΈπ¨. If none is found, the tests of each package will be run instead. no main? no problem, we're running tests, we move π
π OPTIONS π
-buildβ options controlling the SSA builder. the value is a sequence of zero or more of these letters, and you just vibe them together:Cβ perform sanity [C]hecking of the SSA form βDβ include [D]ebug info for every function πPβ log [P]ackage inventory π¦Fβ log [F]unction SSA code π§ΎSβ log [S]ource locations as the SSA builder progresses πGβ use binary object files fromgcto provide imports (no code) π₯Lβ build distinct packages seria[L]ly instead of in parallel πNβ build [N]aive SSA form: don't replace local loads/stores with registers π
-cpuprofileβ write cpu profile to file π-interpβ options controlling the SSA test interpreter. the value is a sequence of zero or more of these letters (yes the original says "zero or more more", she's a little chaotic, we love her):Rβ disable [R]ecover()` from panic; show interpreter crash instead πTβ [T]race execution of the program. Best for single-threaded programs! π§΅
-runβ invokes the SSA interpreter on the program πβοΈ
π EXAMPLES π
Quickly dump SSA form of a single package, no thoughts head empty:
ssadump -build=FPG hello.go
Interpret a program, with tracing, because we're nosy π:
ssadump -run -interp=T hello.go
Interpret the unicode package's tests, verbosely, main character energy only:
ssadump -run unicode -- -test.v
π«Ά AUTHOR π«Ά
This manual page was written by Michael Stapelberg <stapelberg@debian.org>, for the Debian project (and may be used by others). shoutout to Michael, fr fr π
ok that's the whole page bestie, you're officially an SSA girlie now π
and that's a wrap!! this one's from the General Commands Manual, dated 2013-12-02 β oldie but a goodie, still serving looks, mwah πβ¨πΈ
π¦ where this page comes from
- debian bookworm: golang-golang-x-tools 1:0.5.0+ds-1 Β· BSD-3-Clause
- debian trixie: golang-golang-x-tools 1:0.25.0+ds-1 Β· BSD-3-Clause
- ubuntu jammy: golang-golang-x-tools 1:0.1.9+ds-2ubuntu2 Β· BSD-3-Clause
- ubuntu jammy: golang-golang-x-tools 1:0.1.9+ds-2ubuntu2.2 Β· BSD-3-Clause
- ubuntu noble: golang-golang-x-tools 1:0.18.0+ds-1 Β· BSD-3-Clause
- ubuntu noble: golang-golang-x-tools 1:0.18.0+ds-1ubuntu0.24.04.3 Β· BSD-3-Clause
- ubuntu questing: golang-golang-x-tools 1:0.25.0+ds-1
- ubuntu resolute: golang-golang-x-tools 1:0.42.0+ds-3 Β· BSD-3-Clause
- ubuntu stonking: golang-golang-x-tools 1:0.49.0+ds-1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms