go-assembler-gen/README.md
2024-05-10 06:38:37 +02:00

798 B

Go assembler generator

A generator of the internal assembler from the Go compiler, with import paths re-written for the assembler to be functional as a standalone library.

Usage

Call it within go generate to produce the output in your tree within a subdirectory.

package assembler

//go:generate go run git.gammaspectra.live/WeebDataHoarder/go-assembler-gen@v{GO_VERSION} -pkg assembler

Go versions

Releases are tagged as go{GO_VERSION} or v{GO_VERSION}.

See version.go to get the default tracked Golang version for this branch.

Other releases other than tracked Golang version are not supported (but might work).

Script adapted and updated from github.com/twitchyliquid64/golang-asm into pure Golang