Follow

TIL you can see each of the compiler's phases in action by using the `GOSSAFUNC` environment variable.

The following command will generate an `ssa.html` file which contains an interactive view of what each compile pass does to a particular piece of code (the function Foo).
`GOSSAFUNC=main.Foo go build`

· · Web · 0 · 0 · 0
Sign in to participate in the conversation
Mastodon

The social network of the future: No ads, no corporate surveillance, ethical design, and decentralization! Own your data with Mastodon!