Skip to content

RazerFord/OLangCompiler

Repository files navigation

OLangCompiler

Compiler for the OLang language

Prerequisite

sudo apt install llvm
sudo apt install clang-15

CompileProgram

  1. To compile file. Use command
    ./olang "PROGRAM" "OUTFILE"
    PROGRAM - program file path
    OUTFILE - output file path
  2. Execute
    llc "OUTFILE"
    OUTFILE - output file path
    The file "OUTFILE.s" will appear
  3. Compile with clang
    clang++-15 "OUTFILE.s" ./std/std.ll -no-pie -o "EXECUTABLE"
    OUTFILE.s - output file after compilation
    EXECUTABLE - executable file

Example

./olang "/home/razerford/Рабочий стол/OLangCompiler/tests/1_test.olg" "out"
llc ./out
clang++-15 out.s ./std/std.ll -no-pie -o out
./out

About

Compiler for the OLang language

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published