package goarch
Import Path
internal/goarch (on go.dev)
Dependency Relation
imports 0 packages, and imported by 7 packages
Involved Source Files
package goarch contains GOARCH-specific constants.
goarch_amd64.go
zgoarch_amd64.go
Package-Level Type Names (only one, which is exported)
Package-Level Constants (total 49, in which 44 are exported)
const AMD64 ArchFamilyType = 0
ArchFamily is the architecture family (AMD64, ARM, ...)
const ARM ArchFamilyType = 1 const ARM64 ArchFamilyType = 2
BigEndian reports whether the architecture is big-endian.
DefaultPhysPageSize is the default physical page size.
const I386 ArchFamilyType = 3
Int64Align is the required alignment for a 64-bit integer (4 on 32-bit systems, 8 on 64-bit).
const IsAmd64p32 = 0 const IsMips64le = 0 const IsMips64p32 = 0 const IsMips64p32le = 0
MinFrameSize is the size of the system-reserved words at the bottom
of a frame (just above the architectural stack pointer).
It is zero on x86 and PtrSize on most non-x86 (LR-based) systems.
On PowerPC it is larger, to cover three more reserved words:
the compiler word, the link editor word, and the TOC save word.
const MIPS ArchFamilyType = 5
PCQuantum is the minimal unit for a program counter (1 on x86, 4 on most other systems).
The various PC tables record PC deltas pre-divided by PCQuantum.
const PPC64 ArchFamilyType = 7
PtrSize is the size of a pointer in bytes - unsafe.Sizeof(uintptr(0)) but as an ideal constant.
It is also the size of the machine's native word size (that is, 4 on 32-bit systems, 8 on 64-bit).
const S390X ArchFamilyType = 9
StackAlign is the required alignment of the SP register.
The stack must be at least word aligned, but some architectures require more.
const WASM ArchFamilyType = 10
The pages are generated with Golds v0.6.7. (GOOS=linux GOARCH=amd64) Golds is a Go 101 project developed by Tapir Liu. PR and bug reports are welcome and can be submitted to the issue list. Please follow @Go100and1 (reachable from the left QR code) to get the latest news of Golds. |