Opcode dictionary
[Compiler]


Detailed Description

Opcode dictionary associates opcodes name and arg type, C function, and wordcode.


Functions

opcode_dict_t opcode_dict_new ()
void opcode_dict_free (opcode_dict_t)
void opcode_dict_init (opcode_dict_t)
void opcode_dict_deinit (opcode_dict_t)
void opcode_dict_add (opcode_dict_t, opcode_arg_t, const char *, opcode_stub_t)
opcode_stub_t opcode_stub_by_name (opcode_dict_t, opcode_arg_t, const char *)
opcode_stub_t opcode_stub_by_code (opcode_dict_t, word_t)
word_t opcode_code_by_stub (opcode_dict_t, opcode_stub_t)
const char * opcode_name_by_stub (opcode_dict_t, opcode_stub_t)
int opcode_dict_link_stubs (opcode_dict_t target, opcode_dict_t src)
int opcode_dict_resolve_stubs (opcode_dict_t src)
void opcode_dict_serialize (opcode_dict_t od, writer_t)
void opcode_dict_unserialize (opcode_dict_t od, reader_t, void *)
opcode_dict_t opcode_dict_optimize (vm_t vm, program_t prog)


Function Documentation

opcode_dict_t opcode_dict_new (  ) 

void opcode_dict_free ( opcode_dict_t   ) 

void opcode_dict_init ( opcode_dict_t   ) 

void opcode_dict_deinit ( opcode_dict_t   ) 

void opcode_dict_add ( opcode_dict_t  ,
opcode_arg_t  ,
const char *  ,
opcode_stub_t   
)

opcode_stub_t opcode_stub_by_name ( opcode_dict_t  ,
opcode_arg_t  ,
const char *   
)

opcode_stub_t opcode_stub_by_code ( opcode_dict_t  ,
word_t   
)

word_t opcode_code_by_stub ( opcode_dict_t  ,
opcode_stub_t   
)

const char* opcode_name_by_stub ( opcode_dict_t  ,
opcode_stub_t   
)

int opcode_dict_link_stubs ( opcode_dict_t  target,
opcode_dict_t  src 
)

int opcode_dict_resolve_stubs ( opcode_dict_t  src  ) 

void opcode_dict_serialize ( opcode_dict_t  od,
writer_t   
)

void opcode_dict_unserialize ( opcode_dict_t  od,
reader_t  ,
void *   
)

opcode_dict_t opcode_dict_optimize ( vm_t  vm,
program_t  prog 
)


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