Imports #
"encoding/binary"
"encoding/binary"
const AMD64const ARMconst ARM64var Arch386 = *ast.UnaryExprvar ArchAMD64 = *ast.UnaryExprvar ArchARM = *ast.UnaryExprvar ArchARM64 = *ast.UnaryExprvar ArchLoong64 = *ast.UnaryExprvar ArchMIPS = *ast.UnaryExprvar ArchMIPS64 = *ast.UnaryExprvar ArchMIPS64LE = *ast.UnaryExprvar ArchMIPSLE = *ast.UnaryExprvar ArchPPC64 = *ast.UnaryExprvar ArchPPC64LE = *ast.UnaryExprvar ArchRISCV64 = *ast.UnaryExprvar ArchS390X = *ast.UnaryExprvar ArchWasm = *ast.UnaryExprvar 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.ParenExprconst I386const Loong64const MIPSconst MIPS64const NoArch ArchFamily = iotaconst PPC64const RISCV64const S390Xconst WasmArchFamily represents a family of one or more related architectures. For example, ppc64 and ppc64le are both members of the PPC64 family.
type ArchFamily byteArch 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) boolGenerated with Arrow