Documentation ¶
Overview ¶
Package arch provides basic descriptions of CPU architectures.
Index ¶
- Variables
- type Arch
- type Layout
- func (l Layout) Int16(b []byte) int16
- func (l Layout) Int32(b []byte) int32
- func (l Layout) Int64(b []byte) int64
- func (l Layout) Order() binary.ByteOrder
- func (l Layout) Uint16(b []byte) uint16
- func (l Layout) Uint32(b []byte) uint32
- func (l Layout) Uint64(b []byte) uint64
- func (l Layout) Word(b []byte) uint64
- func (l Layout) WordSize() int
Constants ¶
This section is empty.
Variables ¶
View Source
var ( AMD64 = &Arch{Layout{0, 8}, "amd64", 0} I386 = &Arch{Layout{0, 4}, "386", 0} )
Functions ¶
This section is empty.
Types ¶
type Arch ¶
type Arch struct { // Layout is the byte order and word size of this architecture. Layout Layout // GoArch is the GOARCH value for this architecture. GoArch string // MinFrameSize is the number of bytes at the bottom of every // stack frame except for empty leaf frames. This includes, // for example, space for a saved LR (because that space is // always reserved), but does not include the return PC pushed // on x86 by CALL (because that is added only on a call). MinFrameSize int }
An Arch describes a CPU architecture.
Click to show internal directories.
Click to hide internal directories.