NAME ^

src/exec.c - Generate an object file

DESCRIPTION ^

Functions ^

void Parrot_exec

Call the jit to get the program code. Adds the members of the data section. And emits the executable.

static void add_data_member

Adds a member to the data section, storing the size of it at obj->data_size[N].

static void exec_init

Initialize the obj structure.

int Parrot_exec_add_symbol

Adds a symbol to the object file.

int *Parrot_exec_add_text_rellocation_reg

Adds a register's text rellocation to the object file. Wrapper around Parrot_exec_add_text_rellocation.

Returns pointer to offset.

void Parrot_exec_add_text_rellocation_func

Adds a function's text rellocation to the object file. Wrapper around Parrot_exec_add_text_rellocation.

void Parrot_exec_add_text_rellocation

Adds a text rellocation to the object file.

static int symbol_list_find

Returns the index of symbol in the symbol list. Returns -1 if it is not in the list.

Used by Parrot_exec_add_symbol().

SEE ALSO ^

include/parrot/exec.h, src/exec_cpu.c, src/exec_save.h and src/exec_start.c.

HISTORY ^

Initial version by Daniel Grunblatt on 2003.6.9.


parrot