14 lines
347 B
C
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
|