goarch
packagestandard libraryThis package is not in the latest version of its module.
Details
Validgo.mod file
The Go module system was introduced in Go 1.11 and is the official dependency management solution for Go.
Redistributable license
Redistributable licenses place minimal restrictions on how software can be used, modified, and redistributed.
Tagged version
Modules with tagged versions give importers more predictable builds.
Stable version
When a project reaches major version v1 it is considered stable.
- Learn more about best practices
Repository
Links
Documentation¶
Overview¶
package goarch contains GOARCH-specific constants.
Index¶
Constants¶
const BigEndian =IsArmbe|IsArm64be|IsMips|IsMips64|IsPpc|IsPpc64|IsS390|IsS390x|IsSparc|IsSparc64 == 1BigEndian reports whether the architecture is big-endian.
const DefaultPhysPageSize = _DefaultPhysPageSizeDefaultPhysPageSize is the default physical page size.
const GOARCH = `amd64`const Int64Align =PtrSizeInt64Align is the required alignment for a 64-bit integer (4 on 32-bit systems, 8 on 64-bit).
const Is386 = 0const IsAmd64 = 1const IsAmd64p32 = 0const IsArm = 0const IsArm64 = 0const IsArm64be = 0const IsArmbe = 0const IsLoong64 = 0const IsMips = 0const IsMips64 = 0const IsMips64le = 0const IsMips64p32 = 0const IsMips64p32le = 0const IsMipsle = 0const IsPpc = 0const IsPpc64 = 0const IsPpc64le = 0const IsRiscv = 0const IsRiscv64 = 0const IsS390 = 0const IsS390x = 0const IsSparc = 0const IsSparc64 = 0const IsWasm = 0const MinFrameSize = _MinFrameSizeMinFrameSize is the size of the system-reserved words at the bottomof 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 PCQuantum = _PCQuantumPCQuantum 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 PtrSize = 4 << (^uintptr(0) >> 63)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 StackAlign = _StackAlignStackAlign is the required alignment of the SP register.The stack must be at least word aligned, but some architectures require more.
Variables¶
This section is empty.
Functions¶
This section is empty.
Types¶
typeArchFamilyType¶
type ArchFamilyTypeint
ArchFamilyType represents a family of one or more related architectures.For example, ppc64 and ppc64le are both members of the PPC64 family.
const (AMD64ArchFamilyType =iotaARMARM64I386LOONG64MIPSMIPS64PPC64RISCV64S390XWASM)
const ArchFamilyArchFamilyType = _ArchFamilyArchFamily is the architecture family (AMD64, ARM, ...)