We can register memory we've allocated onto the heap into a ~sys_t~ instance for examination (read: garbage collection) later. We can also add items to the symbol table it has internally.
10 lines
204 B
Bash
10 lines
204 B
Bash
#!/usr/bin/env sh
|
|
|
|
CFLAGS="-Wall -Wextra -std=c11 -ggdb -fsanitize=address -fsanitize=undefined"
|
|
SRC="vec.c symtable.c tag.c constructor.c sys.c main.c"
|
|
OUT="alisp.out"
|
|
|
|
set -xe
|
|
|
|
cc $CFLAGS -o $OUT $SRC;
|