doc: document PCALIGN assembler directive #64283
Labels
compiler/runtime
Issues related to the Go compiler and/or runtime.
Documentation
help wanted
NeedsFix
The path to resolution is known, but the work has not been done.
Milestone
The PCALIGN assembler directive is used to align instructions to a given boundary. On critical subroutines and critical innermost loops it can deliver a significant boost in performance.
Currently this pseudo instruction is available for ppc64, loong64, amd64, arm64 and soon for riscv64 once CL 541740 is merged. There is also ongoing work to optimize certain routines in #63678.
I propose adding a new section called "Instruction Alignment" to the https://go.dev/doc/asm that includes the following:
I'm happy to write such docs if we agree that it is relevant for the assembler documentation, preferably to be included in Go 1.22.
/cc @rsc @cherrymui @dmitshur
The text was updated successfully, but these errors were encountered: