Mercurial > hg > Members > tobaru > cbc > CbC_llvm
view CbC_Documents/README.txt @ 16:d405342cecb1
can eliminate tail call regardless of optimize level
author | Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp> |
---|---|
date | Tue, 24 Sep 2013 19:04:26 +0900 |
parents | 0c91843d63c0 |
children |
line wrap: on
line source
infomation for CbC project on LLVM Japanese infomation is here (http://www.cr.ie.u-ryukyu.ac.jp/~game/pukiwiki/index.php?llvm) * install CbC_llvm 1. get CbC_llvm from mercurial $ hg clone ssh://one@www.cr.ie.u-ryukyu.ac.jp/hg/CbC/CbC_llvm (dist dir) 2. make directory for install (!! You shouldn't install CbC_llvm soruce directory , you must make another directory for install. !!) $ mkdir (install dir path) $ cd (install dir path) 3. exec configure with options. $ (CbC_llvm path)/configure --prefix=$PWD --disable-optimized --enable-debug-runtime --enable-debug-symbols --enable-assertions --disable-bootstrap --enable-languages=c when you want option's infomation , look at llvm documents. 4. make $ make -j if errors occuerd , remove option '-j' and remake it. 5. check llvm $ (install dir path)/Debug+Asserts/bin/clang -v You can watch version info if make succeeded. * check llvm version without installing $ configure -V * run on gdb 1. compile source file with onption -v. (get args for run on gdb) $ (CbC_LLVM) (source file) -v |& grep cc1 then, copy outputed line which has many arguments. 2. exec gdb $ gdb --args (source file path) (paste copied args here) gdb should work!