3 ms·
Simply drop the assembly as a .s file in a Go package and run `go build`. See Go's hash/crc32 package for a real example [0]. There's a lower level `go tool` c
by benesch 9y ago
Simply drop the assembly as a .s file in a Go package and run `go build`. See Go's hash/crc32 package for a real example [0].
There's a lower level `go tool` command, of course, but I don't know it off the top of my head.
[0]: https://github.com/golang/go/tree/master/src/hash/crc32 https://github.com/golang/go/tree/master/src/hash/crc32
- julienfr112 9y agoamazing