tinyvm/tvm_stack.h
2011-08-04 09:44:07 -07:00

14 lines
347 B
C

#ifndef TVM_STACK_H_
#define TVM_STACK_H_
#define MIN_STACK_SIZE (2 * 1024 * 1024) /* 2 MB */
#include "tvm_memory.h"
/* Initialize our stack by setting the base pointer and stack pointer */
void create_stack(tvm_memory_t* mem, size_t size);
void stack_push(tvm_memory_t* mem, int* item);
void stack_pop(tvm_memory_t* mem, int* dest);
#endif