A demo about how to build a real compiler with LLVM libraries, write for the book https://github.com/tuoxie007/play_with_llvm
A demo about how to build a real compiler with LLVM libraries, write for the book https://github.com/tuoxie007/play_with_llvm .
$ git clone https://github.com/tuoxie007/play_with_llvm_write_a_real_compiler
$ cd play_with_llvm_write_a_real_compiler
$ cd play
$ ./build.sh
$ ./play
Then a .o
file will be wrote in tests/
.
play/cli.cpp
.TEST
.
#define TEST "int_indexer"
//#define TEST "int_pointer_arg"
//#define TEST "delete_ptr"
play/tests
..play
.TEST
in play/cli.cpp
.Have fun!