Imports #
"encoding/binary"
"encoding/binary"
const AMD64
const ARM
const ARM64
var Arch386 = *ast.UnaryExpr
var ArchAMD64 = *ast.UnaryExpr
var ArchARM = *ast.UnaryExpr
var ArchARM64 = *ast.UnaryExpr
var ArchLoong64 = *ast.UnaryExpr
var ArchMIPS = *ast.UnaryExpr
var ArchMIPS64 = *ast.UnaryExpr
var ArchMIPS64LE = *ast.UnaryExpr
var ArchMIPSLE = *ast.UnaryExpr
var ArchPPC64 = *ast.UnaryExpr
var ArchPPC64LE = *ast.UnaryExpr
var ArchRISCV64 = *ast.UnaryExpr
var ArchS390X = *ast.UnaryExpr
var ArchWasm = *ast.UnaryExpr
var Archs = [...]*Arch{...}
ExecArgLengthLimit is the number of bytes we can safely pass as arguments to an exec.Command. Windows has a limit of 32 KB. To be conservative and not worry about whether that includes spaces or not, just use 30 KB. Darwin's limit is less clear. The OS claims 256KB, but we've seen failures with arglen as small as 50KB.
const ExecArgLengthLimit = *ast.ParenExpr
const I386
const Loong64
const MIPS
const MIPS64
const NoArch ArchFamily = iota
const PPC64
const RISCV64
const S390X
const Wasm
ArchFamily represents a family of one or more related architectures. For example, ppc64 and ppc64le are both members of the PPC64 family.
type ArchFamily byte
Arch represents an individual architecture.
type Arch struct {
Name string
Family ArchFamily
ByteOrder binary.ByteOrder
PtrSize int
RegSize int
MinLC int
Alignment int8
CanMergeLoads bool
CanJumpTable bool
HasLR bool
FixedFrameSize int64
}
InFamily reports whether a is a member of any of the specified architecture families.
func (a *Arch) InFamily(xs ...ArchFamily) bool
Generated with Arrow