Movatterモバイル変換


[0]ホーム

URL:


goarch

packagestandard library
go1.25.5Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 2, 2025 License:BSD-3-ClauseImports:0Imported by:0

Details

Repository

cs.opensource.google/go/go

Links

Documentation

Overview

package goarch contains GOARCH-specific constants.

Index

Constants

BigEndian reports whether the architecture is big-endian.

View Source
const DefaultPhysPageSize = _DefaultPhysPageSize

DefaultPhysPageSize is the default physical page size.

View Source
const GOARCH = `amd64`
View Source
const Int64Align =PtrSize

Int64Align is the required alignment for a 64-bit integer (4 on 32-bit systems, 8 on 64-bit).

View Source
const Is386 = 0
View Source
const IsAmd64 = 1
View Source
const IsAmd64p32 = 0
View Source
const IsArm = 0
View Source
const IsArm64 = 0
View Source
const IsArm64be = 0
View Source
const IsArmbe = 0
View Source
const IsLoong64 = 0
View Source
const IsMips = 0
View Source
const IsMips64 = 0
View Source
const IsMips64le = 0
View Source
const IsMips64p32 = 0
View Source
const IsMips64p32le = 0
View Source
const IsMipsle = 0
View Source
const IsPpc = 0
View Source
const IsPpc64 = 0
View Source
const IsPpc64le = 0
View Source
const IsRiscv = 0
View Source
const IsRiscv64 = 0
View Source
const IsS390 = 0
View Source
const IsS390x = 0
View Source
const IsSparc = 0
View Source
const IsSparc64 = 0
View Source
const IsWasm = 0
View Source
const MinFrameSize = _MinFrameSize

MinFrameSize 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.

View Source
const PCQuantum = _PCQuantum

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.

View Source
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).

View Source
const StackAlign = _StackAlign

StackAlign 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 = _ArchFamily

ArchFamily is the architecture family (AMD64, ARM, ...)

Source Files

View all Source files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f orF : Jump to
y orY : Canonical URL
go.dev uses cookies from Google to deliver and enhance the quality of its services and to analyze traffic.Learn more.

[8]ページ先頭

©2009-2025 Movatter.jp