代码拉取完成,页面将自动刷新
LLVM Backend for Reduced X86-64 Instruction Set (Cse523 Backend) ================================================================ Build Instructions: =================== 1. Clone the entire source code into your local directory: git clone git@github.com:sahilpparmar/llvm_backend.git 2. Create a built folder inside the llvm_backend folder: cd llvm_backend mkdir built cd built 3. Configure the build for our Cse523 backend: ../configure --enable-targets=cse523 (Make sure you dont have existing clang binaries in your PATH) 4. Build both frontend (clang) and backend (llc) compiler sources: make [-j] 5. Add the generated compiler-tools bin folder to the PATH export $PATH=<path_to_llvm_backend>/built/Debug+Asserts/bin -------------------------------------------------------------------- Using CLANG and LLC: ==================== Refer to sample tests (prog1/2/3/4/5) at location: <path_to_llvm_backend>/mytest For running the tests: cd <testname> sh build.sh ./<testname> E.g. Running bzip2 testcase a) spparmar@victory:~/llvm/mytest$ cd bzip2 b) spparmar@victory:~/llvm/mytest/bzip2$ sh build.sh [Running] clang blocksort.c [Running] llc blocksort.c.bc [Running] as blocksort.c.S ... [Running] ld bzip2 c) spparmar@victory:~/llvm/mytest/bzip2$ ./bzip2 test/input/randtable.c d) spparmar@victory:~/llvm/mytest/bzip2$ ls test/input/ randtable.c.bz2 e) spparmar@victory:~/llvm/mytest/bzip2$ ./bzip2 -d test/input/randtable.c.bz2 f) spparmar@victory:~/llvm/mytest/bzip2$ ls test/input/ randtable.c For more details, refer the example below: http://llvm.org/docs/GettingStarted.html#an-example-using-the-llvm-tool-chain -------------------------------------------------------------------- Contact Details: ================ In case of any issues, please feel free to contact me at sahilpparmar@gmail.com. --------------------------------------------------------------------
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。