mirror of
https://github.com/ProgramSnail/Lama.git
synced 2025-12-05 22:38:44 +00:00
global vars implementation, todo gc problems
This commit is contained in:
parent
474b0a8ed2
commit
aff30ad7c1
12 changed files with 76 additions and 52 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue