Skip to main content

Crate hexicon_bytecode

Crate hexicon_bytecode 

Source
Expand description

T3 VM byte code: the instruction set, a decoder, and a disassembler.

  • Opcode defines every instruction and its operand layout.
  • decode reads one instruction.
  • disassemble reads a whole function from an image.
  • discover finds the functions in an image.
  • listing renders functions as text.

Modules§

listing
Text listings of disassembled functions.

Structs§

ExceptionHandler
One entry of a function’s exception table.
Function
A disassembled function.
Functions
The functions found in an image.
Instruction
A decoded instruction.
MethodHeader
The fixed-size record at the start of every function.
StrayBranch
A branch that does not land on the start of an instruction.

Enums§

DecodeError
Why an instruction could not be decoded.
DisassembleError
Why a function could not be disassembled.
Extent
How the end of a function’s code was established.
Layout
How an instruction’s operands are laid out.
Opcode
A T3 VM instruction.
Operand
A decoded operand.
OperandKind
The kind and size of one fixed operand.
Payload
The variable-length part of the instructions that have one.

Functions§

decode
Decode the instruction at offset in code.
disassemble
Disassemble the function at a code pool address.
discover
Find and disassemble every function reachable from an image’s roots.
discover_without_debug_info
Like discover, but ignoring the function lists that debug builds carry, so the result is what would be found in a release build of the same program. Comparing the two measures how complete discovery is.