Skip to content
Ron Evans edited this page Apr 20, 2022 · 23 revisions

If you're looking for documentation, that's online over here.

Also, look at the sidebar for some random notes on TinyGo.


Reference material for new TinyGo developers

Intro

General

Go SSA

Tip: Generating Go SSA from the command line

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

LLVM


Related projects