Hacker News new | ask | show | jobs
by slimsag 1876 days ago
You could perhaps just have the Go compiler generate the assembler for your code:

go tool compile -S file.go > file_amd64.s

Then you could verify it doesn't change over time, and choose to begin maintaining by hand if it makes sense.

If you do want to go the route of rolling it yourself, I'd suggest looking into something like Avo: https://github.com/mmcloughlin/avo

1 comments

avo looks like would be a great route for this, though I haven't personally used it.