diff --git a/CMakeLists.txt b/CMakeLists.txt index 7b2ccf434..8443aad82 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -14,5 +14,8 @@ add_executable(c3c src/build/project_creation.c src/utils/errors.c src/utils/file_utils.c - src/utils/string_utils.c - src/compiler/lexer.c src/compiler/lexer.h src/compiler_tests/tests.c src/compiler_tests/tests.h src/compiler_tests/benchmark.c src/compiler_tests/benchmark.h) \ No newline at end of file + src/compiler/lexer.c + src/compiler/tokens.c + src/compiler/symtab.c + src/compiler_tests/tests.c + src/compiler_tests/benchmark.c src/compiler/malloc.c src/compiler/malloc.h src/compiler/compiler.c src/compiler/compiler.h) \ No newline at end of file diff --git a/src/build/build_options.c b/src/build/build_options.c index bc0cab9bf..8e7e56765 100644 --- a/src/build/build_options.c +++ b/src/build/build_options.c @@ -13,6 +13,8 @@ #include "../utils/errors.h" static const char* DEFAULT_TARGET = "default"; +static const int DEFAULT_SYMTAB_SIZE = 64 * 1024; +static const int MAX_SYMTAB_SIZE = 1024 * 1024; BuildOptions build_options; static int arg_index; @@ -46,6 +48,7 @@ static void usage(void) OUTPUT(" --path - Use this as the base directory for the current command."); OUTPUT(" --template