LispBM
Functions
lispbm.c File Reference
#include "lispbm.h"
Include dependency graph for lispbm.c:

Functions

int lbm_init (lbm_cons_t *heap_storage, lbm_uint heap_size, lbm_uint *memory, lbm_uint memory_size, lbm_uint *memory_bitmap, lbm_uint bitmap_size, lbm_uint gc_stack_size, lbm_uint print_stack_size, lbm_extension_t *extension_storage, lbm_uint extension_storage_size)
 

Function Documentation

◆ lbm_init()

int lbm_init ( lbm_cons_t heap_storage,
lbm_uint  heap_size,
lbm_uint memory,
lbm_uint  memory_size,
lbm_uint memory_bitmap,
lbm_uint  bitmap_size,
lbm_uint  gc_stack_size,
lbm_uint  print_stack_size,
lbm_extension_t extension_storage,
lbm_uint  extension_storage_size 
)

Initialize lispBM. This function initials all subsystems by calling:

Parameters
heap_storagePointer to array of lbm_cons_t to use as heap. This array must be aligned 4 at least.
heap_sizeSize of heap storage array in number of lm_cons_t.
memoryPointer to lbm_uint array to use for the arrays and symbols memory. This array must be aligned 4 at least.
memory_sizeSize of the memory array.
memory_bitmapPointer to lbm_uint array to use for the memory subsystem meta-data.
bitmap_sizeSize of the memory meta-data array.
gc_stack_sizeSize in number of lbm_uint values to use for the GC stack.
print_stack_sizeSize in number of lbm_uint values of the print stack.
extension_storageArray of lbm_extension_t pointers.
extension_storage_sizeSize of extension array.
Returns
1 on success and 0 on failure.