go-interpreter / ssainterp

A Golang interpreter, built upon golang.org/x/tools/go/ssa/interp
MIT License
58 stars 9 forks source link

SSA decompiler #8

Open arieltci opened 6 years ago

arieltci commented 6 years ago

Is there a ssa decompiler or a way to reverse ssa back to go?

elliott5 commented 6 years ago

I don't know of a decompiler, but one would not be too tricky to write in terms of functionality.

The best way to understand the SSA ecosystem originally used by this repo is to begin your understanding with https://github.com/golang/tools/blob/master/cmd/ssadump/main.go

However, this is a different SSA ecosystem from that used by the main Go compiler.

SSA is fun, enjoy!