←back to thread

Show HN: Go Plan9 Memo

(pehringer.info)
302 points pehringer | 1 comments | | HN request time: 0.217s | source

A quick dive into the Plan9 assembly I picked up while developing my SIMD package for Go, and how it led to a 450% performance boost in calculations.
1. kunley ◴[] No.41887524[source]
Few technical comments:

Go's calling convention is using registers, except when writing own assembly functions then it's stack-based; the latter is also how it worked in the past. See https://go.dev/s/regabi and https://go.dev/doc/asm

Build tags have a form "go:build" not "+build" since Go 1.17, that is for couple of years already.

More about build tags: using both build tags and filename suffix for arch-based conditional compilation is redundant. Just use one of them, not both.