parrotcode: The Parrot embedding interface | |
Contents | C |
src/embed.c - The Parrot embedding interface
This file implements the Parrot embedding interface.
Parrot_Interp Parrot_new
parent
is NULL
) is the last one to get destroyed.void Parrot_init_stacktop
void Parrot_set_flag
flag
,
any of PARROT_BOUNDS_FLAG
,
or PARROT_PROFILE_FLAG
to enable profiling,
and bounds checking respectively or PARROT_THR_TYPE_1
,
PARROT_THR_TYPE_2
,
or PARROT_THR_TYPE_3
to disable thread communication and variable sharing,
disable variable sharing but enable thread communication,
or to enable variable sharing.void Parrot_set_debug
PARROT_DEBUG_FLAG
.void Parrot_set_trace
PARROT_TRACE_FLAG
void Parrot_clear_flag
void Parrot_clear_debug
void Parrot_clear_trace
Parrot_Int Parrot_test_flag
flag
.UINTVAL Parrot_test_debug
flag
.UINTVAL Parrot_test_trace
flag
.void Parrot_set_run_core
void Parrot_setwarnings
PackFile *Parrot_readbc
PackFile
structure,
and do fixups.void Parrot_loadbc
PackFile
returned by Parrot_readbc()
.static PMC *setup_argv
ARGS
array PMC.static int prof_sort_f
static const char *op_name
static FLOATVAL calibrate
parrot -p
almost match those measured with time parrot -b
.static void print_profile
static void print_debug
static PMC *set_current_sub
void Parrot_runcode
ARGV
and runs the ops.opcode_t *Parrot_debug
void Parrot_disassemble
void Parrot_run_native
func
through the program [enternative, end]
.
This ensures that the function is run with the same setup as in other run loops.include/parrot/embed.h and docs/embed.pod.
Initial version by Brent Dax on 2002.1.28.
|