Documentation ¶
Index ¶
- func ReadObjdump(stdout io.Reader) (insts map[string]int64, regs map[string]int64, err error)
- func RunObjdump(fpath string) (insts map[string]int64, regs map[string]int64, err error)
- type Arch
- func (a *Arch) AddInst(iname string, isaID []byte) (err error)
- func (a *Arch) AddReg(rname string, isaID []byte) (err error)
- func (a *Arch) InstToISA(iname string) (id []byte, err error)
- func (a *Arch) NInst() int
- func (a *Arch) NReg() int
- func (a *Arch) Put() (err error)
- func (a *Arch) RegToISA(rname string) (id []byte, err error)
- type ArchYml
- type ISA
- type ISAYml
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ReadObjdump ¶
ReadObjdump gets the counts of all registers and instructions used in a binary file
Types ¶
type Arch ¶
type Arch struct { Name string // contains filtered or unexported fields }
Arch represents an Architecture, with its instructions and registers
func ReadArchElf ¶
ReadArchElf deserializes an Arch by ELF type from a BoltDB and retrieves its Buckets
type ArchYml ¶
ArchYml is the YAML representation of an Architecture
func ReadArchYml ¶
ReadArchYml deserializes an ArchYml from a []byte
type ISA ¶
type ISA struct { Name string Description string Vendor string // contains filtered or unexported fields }
ISA is an Instruction Set Architecture (ISA) for storage in Bolt
type ISAYml ¶
type ISAYml struct { Name string `yaml:"name"` Description string `yaml:"description"` Vendor string `yaml:"vendor-specific"` Inherits []string `yaml:"inherits"` Registers []string `yaml:"registers"` Instructions []string `yaml:"instructions"` }
ISAYml is a YAML representation of an Instruction Set Architecture (ISA)
func ReadISAYml ¶
ReadISAYml deserializes an ArchYml from a []byte
Click to show internal directories.
Click to hide internal directories.