Compiler for the OLang language
sudo apt install llvm
sudo apt install clang-15
- To compile file. Use command
./olang "PROGRAM" "OUTFILE" PROGRAM - program file path OUTFILE - output file path
- Execute
The file "OUTFILE.s" will appear
llc "OUTFILE" OUTFILE - output file path
- Compile with
clang
clang++-15 "OUTFILE.s" ./std/std.ll -no-pie -o "EXECUTABLE" OUTFILE.s - output file after compilation EXECUTABLE - executable file
./olang "/home/razerford/Рабочий стол/OLangCompiler/tests/1_test.olg" "out"
llc ./out
clang++-15 out.s ./std/std.ll -no-pie -o out
./out