1 Star 0 Fork 1

陈星宇 / llvm_backend

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README
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.

--------------------------------------------------------------------

空文件

简介

暂无描述 展开 收起
取消

发行版

暂无发行版

贡献者

全部

近期动态

加载更多
不能加载更多了
1
https://gitee.com/cyu1998s/llvm_backend.git
git@gitee.com:cyu1998s/llvm_backend.git
cyu1998s
llvm_backend
llvm_backend
master

搜索帮助