program

package
v1.20.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 11, 2026 License: MIT, MIT Imports: 10 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const (
	HEAP_START    = arch.HeapStart
	HEAP_END      = arch.HeapEnd
	PROGRAM_BREAK = arch.ProgramBreak
)
View Source
const WordSizeBytes = arch.WordSizeBytes

Variables

This section is empty.

Functions

func LoadELF

func LoadELF[T mipsevm.FPVMState](f *elf.File, initState CreateInitialFPVMState[T]) (T, error)

func PatchStack

func PatchStack(st mipsevm.FPVMState) error

PatchStack sets up the program's initial stack frame and stack pointer

Types

type CreateInitialFPVMState

type CreateInitialFPVMState[T mipsevm.FPVMState] func(pc, heapStart Word) T

type Metadata

type Metadata struct {
	Symbols []Symbol `json:"symbols"`
}

func MakeMetadata

func MakeMetadata(elfProgram *elf.File) (*Metadata, error)

func (*Metadata) CreateSymbolMatcher

func (m *Metadata) CreateSymbolMatcher(name string) mipsevm.SymbolMatcher

func (*Metadata) LookupSymbol

func (m *Metadata) LookupSymbol(addr Word) string

type Symbol

type Symbol struct {
	Name  string `json:"name"`
	Start Word   `json:"start"`
	Size  Word   `json:"size"`
}

type Word

type Word = arch.Word

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL