Management
[Virtual Machine]


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.


Function Documentation

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

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.


Generated on Wed Feb 6 14:46:05 2008 for TinyaML by  doxygen 1.5.3