global vars implementation, todo gc problems

This commit is contained in:
ProgramSnail 2025-05-11 11:02:07 +03:00
parent 474b0a8ed2
commit aff30ad7c1
12 changed files with 76 additions and 52 deletions

View file

@ -9,7 +9,7 @@ endif
DISABLE_WARNINGS=-Wno-shift-negative-value
COMMON_FLAGS=$(DISABLE_WARNINGS) -g -fstack-protector-all $(ARCH) --std=c11
PROD_FLAGS=$(COMMON_FLAGS) -DLAMA_ENV
PROD_FLAGS=$(COMMON_FLAGS)
TEST_FLAGS=$(COMMON_FLAGS) -DDEBUG_VERSION
UNIT_TESTS_FLAGS=$(TEST_FLAGS)
INVARIANTS_CHECK_FLAGS=$(TEST_FLAGS) -DFULL_INVARIANT_CHECKS

View file

@ -37,7 +37,7 @@
#define SET_FORWARD_ADDRESS(x, addr) (x = ((x & 3) | ((ptrt)(addr))))
// if heap is full after gc shows in how many times it has to be extended
#define EXTRA_ROOM_HEAP_COEFFICIENT 2
#define MINIMUM_HEAP_CAPACITY (64)
#define MINIMUM_HEAP_CAPACITY (640000)
#include <stdbool.h>
#include <stddef.h>