Start working on codegen implementation in C

This commit is contained in:
2025-09-07 06:09:43 +01:00
parent 509d6c912f
commit f09d759b05
7 changed files with 2200 additions and 2 deletions

View File

@@ -43,9 +43,9 @@ ifeq ($(CC),gcc)
export ASAN_OPTIONS=verify_asan_link_order=0
endif
.PHONY: help full prng testing uuid core primitives all clean builddir build-test run-test codegen install build-lib
.PHONY: help full prng testing uuid core primitives all clean builddir build-test run-test codegen install build-lib ccodegen
all: clean builddir codegen run-c-test full run-cc-test
all: clean builddir codegen run-c-test full run-cc-test ccodegen
help:
@echo "Available build variables:"
@@ -126,3 +126,6 @@ build-lib: builddir
$(CC) -c $(CSTD) $(CFLAGS) $(LIBFLAGS) $(LIB_SRC) -o $(OBJ_OUT)
$(AR) r $(LIB_OUT) $(OBJ_OUT)
@rm $(OBJ_OUT)
ccodegen:
$(CC) $(CSTD) $(CFLAGS) $(LIBFLAGS) -Isrc/core src/core/wapp_core.c ccodegen/*.c -o ccgen