You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Go SSA can be generated from the command line by adding the GOSSAFUNC
variable to your environment for go build:
$ GOSSAFUNC=main go build -a src/examples/wasm/main/main.go
# runtime
dumped SSA to /usr/local/go/src/runtime/ssa.html
# command-line-arguments
dumped SSA to src/examples/wasm/main/ssa.html
The ssa.html file can be viewed using a browser:
$ ls -la src/examples/wasm/main/
total 156
drwxrwxr-x. 2 jc jc 72 May 6 18:51 .
drwxrwxr-x. 6 jc jc 125 May 6 18:50 ..
-rw-rw-r--. 1 jc jc 1304 May 6 18:50 index.html
-rw-rw-r--. 1 jc jc 55 May 6 18:50 main.go
-rw-rw-r--. 1 jc jc 254 May 6 18:50 README.md
-rw-r--r--. 1 jc jc 146489 May 6 18:51 ssa.html