modulepackage
0.0.0-20181122101858-fa316c1b8f51
Repository: https://github.com/cznic/virtual.git
Documentation: pkg.go.dev
# README
github.com/cznic/virtual
has moved to modernc.org/virtual
(vcs).
Please update your import paths to modernc.org/virtual
.
This repo is now archived.
# Functions
CopyBytes copies src to dest, optionally adding a zero byte at the end.
CopyString copies src to dest, optionally adding a zero byte at the end.
DumpCode outputs code to w, assuming it is located at start.
DumpCodeStr is like DumpCode but it returns a buffer.Bytes instead.
Exec is a convenience wrapper around New.
GoBytes returns a []byte copied from a C char* null terminated string s.
GoBytesLen returns a []byte copied from a C char* string s having length len bytes.
GoString returns a string from a C char* null terminated string s.
GoStringLen returns a string from a C char* string s having length len bytes.
IsBuiltin reports whether an external function is one of the builtins.
LoadMain translates program in objects into a Binary or an error, if any.
New runs the program in b and returns its exit status or an error, if any.
ProfileFunctions turns profiling of functions on.
ProfileInstructions turns profiling of instructions on.
ProfileLines turns profiling of source lines on.
ProfileRate set the profilig rate.
# Constants
Values of Opcode.
Values of Opcode.
Values of Opcode.
Values of Opcode.
Values of Opcode.
Values of Opcode.
N.
Values of Opcode.
N.
Values of Opcode.
Values of Opcode.
Values of Opcode.
Values of Opcode.
N.
Values of Opcode.
N + ext: size.
N.
N.
N.
N.
Values of Opcode.
Values of Opcode.
N lshift<<8|rshift.
N lshift<<8|rshift.
N lshift<<8|rshift.
N lshift<<8|rshift.
N: lshift<<8|rshift.
N: lshift<<8|rshift.
N: lshift<<8|rshift.
N: lshift<<8|rshift.
Values of Opcode.
Values of Opcode.
Values of Opcode.
Values of Opcode.
Values of Opcode.
Values of Opcode.
Values of Opcode.
N.
N.
Values of Opcode.
Values of Opcode.
Values of Opcode.
Values of Opcode.
Values of Opcode.
Values of Opcode.
Values of Opcode.
Values of Opcode.
Values of Opcode.
Values of Opcode.
Values of Opcode.
Values of Opcode.
Values of Opcode.
Values of Opcode.
Values of Opcode.
Values of Opcode.
Values of Opcode.
Values of Opcode.
Values of Opcode.
Values of Opcode.
Values of Opcode.
Values of Opcode.
Values of Opcode.
Values of Opcode.
Values of Opcode.
Values of Opcode.
Values of Opcode.
N.
Values of Opcode.
Values of Opcode.
Values of Opcode.
Values of Opcode.
Values of Opcode.
Values of Opcode.
Values of Opcode.
Values of Opcode.
Values of Opcode.
Values of Opcode.
Values of Opcode.
Values of Opcode.
Values of Opcode.
Values of Opcode.
Values of Opcode.
Values of Opcode.
Values of Opcode.
Values of Opcode.
Values of Opcode.
Values of Opcode.
Values of Opcode.
Values of Opcode.
Values of Opcode.
N.
Values of Opcode.
Values of Opcode.
Values of Opcode.
Values of Opcode.
Values of Opcode.
Values of Opcode.
Values of Opcode.
Values of Opcode.
Values of Opcode.
Values of Opcode.
Values of Opcode.
Values of Opcode.
Values of Opcode.
Values of Opcode.
Values of Opcode.
Values of Opcode.
Values of Opcode.
Values of Opcode.
Values of Opcode.
N.
N.
N.
N.
N.
N.
N + ext: size.
Values of Opcode.
Values of Opcode.
Values of Opcode.
Values of Opcode.
Values of Opcode.
Values of Opcode.
Values of Opcode.
Values of Opcode.
Values of Opcode.
N.
Values of Opcode.
N + ext: size.
N + ext: size.
N + ext: size.
Values of Opcode.
Values of Opcode.
Values of Opcode.
Values of Opcode.
N.
Values of Opcode.
N.
Values of Opcode.
Values of Opcode.
Values of Opcode.
Values of Opcode.
Values of Opcode.
Values of Opcode.
Values of Opcode.
Values of Opcode.
Values of Opcode.
Values of Opcode.
Values of Opcode.
Values of Opcode.
Values of Opcode.
Values of Opcode.
Values of Opcode.
Values of Opcode.
Values of Opcode.
Values of Opcode.
Values of Opcode.
Values of Opcode.
Values of Opcode.
Values of Opcode.
Values of Opcode.
Values of Opcode.
Values of Opcode.
Values of Opcode.
Values of Opcode.
Values of Opcode.
Values of Opcode.
Values of Opcode.
Values of Opcode.
Values of Opcode.
Values of Opcode.
Values of Opcode.
Values of Opcode.
Values of Opcode.
Values of Opcode.
Values of Opcode.
Values of Opcode.
Values of Opcode.
Values of Opcode.
Values of Opcode.
N.
N.
N.
N.
N.
N.
N.
N.
N.
Values of Opcode.
Values of Opcode.
N.
Values of Opcode.
N.
N.
N.
Values of Opcode.
Values of Opcode.
Values of Opcode.
Values of Opcode.
Values of Opcode.
Values of Opcode.
Values of Opcode.
Values of Opcode.
N + ext: size.
N.
N.
N.
N.
Values of Opcode.
Values of Opcode.
Values of Opcode.
Values of Opcode.
Values of Opcode.
N.
N.
N.
N.
Values of Opcode.
Values of Opcode.
Values of Opcode.
Values of Opcode.
Values of Opcode.
Values of Opcode.
Values of Opcode.
Values of Opcode.
Values of Opcode.
Values of Opcode.
Values of Opcode.
Values of Opcode.
Values of Opcode.
Values of Opcode.
Values of Opcode.
Values of Opcode.
Values of Opcode.
Values of Opcode.
Values of Opcode.
Values of Opcode.
N.
N.
N.
N.
N.
Values of Opcode.
Values of Opcode.
Values of Opcode.
Values of Opcode.
Values of Opcode.
Values of Opcode.
Values of Opcode.
Values of Opcode.
Values of Opcode.
Values of Opcode.
Values of Opcode.
Values of Opcode.
Values of Opcode.
Values of Opcode.
N.
N.
N.
N.
N.
N.
N + ext: bits<<16 | bitoffset<<8 | bitfieldWidth.
N + ext: bits<<16 | bitoffset<<8 | bitfieldWidth.
N.
N.
N.
N.
N.
N + ext: bits<<16 | bitoffset<<8 | bitfieldWidth.
N + ext: bits<<16 | bitoffset<<8 | bitfieldWidth.
N.
N.
N.
N.
N.
N + ext: imag part.
Values of Opcode.
Values of Opcode.
Values of Opcode.
Values of Opcode.
Values of Opcode.
Values of Opcode.
Values of Opcode.
N.
N.
N.
N.
N.
N.
N.
N.
Values of Opcode.
Values of Opcode.
Values of Opcode.
N.
Values of Opcode.
Values of Opcode.
Values of Opcode.
Values of Opcode.
N.
N.
N.
N.
Values of Opcode.
N.
Values of Opcode.
Values of Opcode.
Values of Opcode.
Values of Opcode.
Values of Opcode.
N.
N.
Values of Opcode.
N.
Values of Opcode.
Values of Opcode.
Values of Opcode.
N + ext: size.
N.
N.
N.
N.
Values of Opcode.
Values of Opcode.
Values of Opcode.
Values of Opcode.
Values of Opcode.
Values of Opcode.
Values of Opcode.
Values of Opcode.
Values of Opcode.
Values of Opcode.
# Variables
Testing amends things for tests.
# Structs
Binary represents a loaded program image.
Float64Result is an FFI float64 result.
Int32Result is an FFI int32 result.
Int64Result is an FFI int64 result.
KillError is the error returned by the CPU of a killed machine.
Machine represents the state of the VM memory and threads.
Operation is the machine code.
PCInfo represents a line/function for a particular program counter location.
PtrResult is an FFI pointer result.
Thread is a thread of VM execution.
# Interfaces
FFIArgument is immplemented by all types of FFI arguments.
FFIResult is immplemented by all types of FFI results.