Functions | |
vm_t | vm_new () |
create a new Virtual Machine Actually, the VM is a singleton for internal reasons. But vm_new must be called once. | |
void | vm_del (vm_t) |
vm_t | vm_set_lib_file (vm_t, const char *) |
link an external library file to the VM. Actual file name is dependant on architecture. On Linux, it is $prefix/lib/tinyaml/libtinyaml_<lib_file_name>.so | |
vm_t | vm_add_opcode (vm_t, const char *name, opcode_arg_t, opcode_stub_t) |
declare a new opcode with (name, argument type, C function). | |
opcode_dict_t | vm_get_dict (vm_t) |
get the opcode dictionary | |
opcode_t | vm_get_opcode_by_name (vm_t, const char *) |
as it says. For VM analysis. Not much use otherwise. |
vm_t vm_new | ( | ) |
create a new Virtual Machine Actually, the VM is a singleton for internal reasons. But vm_new must be called once.
void vm_del | ( | vm_t | ) |
destroy the given Virtual Machine
link an external library file to the VM. Actual file name is dependant on architecture. On Linux, it is $prefix/lib/tinyaml/libtinyaml_<lib_file_name>.so
vm_t vm_add_opcode | ( | vm_t | , | |
const char * | name, | |||
opcode_arg_t | , | |||
opcode_stub_t | ||||
) |
declare a new opcode with (name, argument type, C function).
opcode_dict_t vm_get_dict | ( | vm_t | ) |
get the opcode dictionary
as it says. For VM analysis. Not much use otherwise.