- llvm16 (+ clang)
- cmake
- floating point arithmetic (with order of operations!)
- custom functions
- can be imported as .o file into c project (using extern)
- look at example.txt as an example of a working script!!
- to configure, run
cmake -B build -G Ninja -DLLVM_TARGETS_TO_BUILD=
(target) - to build, run
cmake --build build
this builds both executables,fx
andout
- the
out
exec will build the filetest.txt
and then when you you run it, it uses the file inout.c
- both the executable name and source file are cmake options that can be set with
-Dsrc
and-Dexec
- integers gotta work
- add arrays
- for loops
- fixing extern system
- link compiler error locations to ir codegen