git clone https://github.com/ntua-el15074/Alan-Compiler.git
make -C cmd
source $HOME/.bashrc
alan [OPTIONS] source_file
The Alan executable is located in the bin
folder.
The executable requires lib.a
also located in the bin
folder,
which was provided by professor Kostis Sagonas.
The building process of the compiler adds the lib.a and bin paths to your
.bashrc
and/or .zshrc
.
The compiler can be used with any of these options
-h, --help Display this information
-v, --version Display the version of the compiler
-o Optimize the code
-i Output Intermediate Representation to Standard Output
-f Output Assembly to Standard Output
-p Output the AST tree
--changesuffix [suffix] Change the suffix of the assembly file
--changellc [llc] Change the llc command
--changeout [file] Change the output name
The compiler will provide an executable of the program named a.out
.