Skip to content

A Go SSA Debugger and Interpreter

Notifications You must be signed in to change notification settings

rocky/ssa-interp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

gub and tortoise - A Go SSA Debugger and Interpreter

GoDoc Build Status

This project modifies the Go SSA interpreter to support a debugger. We provide the debugger here as well.

Setup

  • Make sure our Go environment is setup, e.g. $GOBIN, $GOPATH, ...
  • Make sure you have a 1.4 Go version installed. For Go 1.2.2 use the go1.2.2 branch, for Go 1.1.1, use the go1.1 branch.
    bash < <(curl -s https://raw.githubusercontent.com/rocky/ssa-interp/master/gub-installer)

If this doesn't work here is what the above does:

   go get github.com/rocky/ssa-interp
   cd $GOBIN/src/github.com/rocky/ssa-interp
   make install

Running

Running the debugger:

  gub.sh -- *go-program* [-- *program-opts*...]
  tortoise -run -interp=S *go-program* [-- *program-opts*..]  # Same as above

Or just the interpreter, tortoise:

  tortoise -run *go-program* [-- *program-opts*..]

and now with a test suite, columnize:

  tortoise -run -interp=S -test columnize

See Also

endorse rocky

About

A Go SSA Debugger and Interpreter

http://godoc.org/github.com/rocky/ssa-interp

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages