Added check of invariance of objects' topology before and after compaction

This commit is contained in:
Egor Sheremetov 2023-06-20 16:22:35 +02:00
parent 11d496405b
commit 31551e73fd
5 changed files with 112 additions and 16 deletions

View file

@ -1,11 +1,11 @@
CC=gcc
FLAGS=-m32 -g2 -fstack-protector-all
FLAGS=-m32 -g2 -fstack-protector-all -DFULL_INVARIANT_CHECKS
all: gc_runtime.o gc.o runtime.o
ar rc runtime.a gc_runtime.o runtime.o gc.o
test.o: gc.c gc.h gc_runtime.s runtime.c runtime.h runtime_common.h virt_stack.c virt_stack.h test_main.c test_util.s
$(CC) -o test.o -DDEBUG_VERSION $(FLAGS) gc.c gc_runtime.s virt_stack.c runtime.c test_main.c test_util.s
$(CC) -o test.o -DDEBUG_VERSION $(FLAGS) gc.c gc_runtime.s virt_stack.c ext_arr.c runtime.c test_main.c test_util.s
virt_stack.o: virt_stack.h virt_stack.c
$(CC) $(FLAGS) -c virt_stack.c