parrotcode: Generate an object file | |
Contents | C |
src/exec.c - Generate an object file
void Parrot_exec(Interp *interpreter, opcode_t *pc, opcode_t *code_start, opcode_t *code_end)
static void add_data_member(Parrot_exec_objfile_t *obj, void *src, size_t len)
obj->data_size[N]
.static void exec_init(Parrot_exec_objfile_t *obj)
int Parrot_exec_add_symbol(Parrot_exec_objfile_t *obj, const char *symbol, int stype)
int *Parrot_exec_add_text_rellocation_reg(Parrot_exec_objfile_t *obj, char *nptr, const char *var, int offset, int disp)
void Parrot_exec_add_text_rellocation_func(Parrot_exec_objfile_t *obj, char *nptr, const char *func_name)
void Parrot_exec_add_text_rellocation(Parrot_exec_objfile_t *obj, char *nptr, int type, const char *symbol, int disp)
static int symbol_list_find(Parrot_exec_objfile_t *obj, const char *symbol)
symbol
in the symbol list.
Returns -1 if it is not in the list.Parrot_exec_add_symbol()
.include/parrot/exec.h, src/exec_cpu.c, include/parrot/exec_save.h and src/exec_start.c.
Initial version by Daniel Grunblatt on 2003.6.9.
|