Currently StdSizes allows to specify only MaxAlignment and WordSize, but this cannot handle one of the standard architectures -- amd64p32. It should allow to specify WordSize and PointerSize independently.
The text was updated successfully, but these errors were encountered:
StdSizes also doesn't exactly follow the gc-compiler's alignment and size computation in general. It's not meant to be a 1:1 drop-in.
What's more, the go/types API and thus StdSizes is frozen. It is easy enough to either a) write an external implementation of Sizes and provide it to go/types, or perhaps add a GCSizes type that matches the gc-behavior exactly. Either way, those approaches would solve this problem in a different way.