#include "interpret.h" #include "interpret.sctx.h" struct inst tmp_prg[]= { {PUSH, 50}, {PUSH, 3}, {LD, EMPTY}, {ADD, EMPTY}, {PUSH, 10}, {MUL, EMPTY}, {PUSH, 0}, {ST, EMPTY}, {END, EMPTY} }; /* int stack[STACK_SIZE]; int mem[MEM_SIZE]={0, 1, 2, 3}; */ void set_specialization_context(struct inst **prog) { *prog = tmp_prg; for(prg_size = 0 ; tmp_prg[prg_size].opcode != END ; prg_size++) ; }