# HG changeset patch # User Kaito Tokumori # Date 1376888531 -32400 # Node ID 0c91843d63c00d971294e73ff53882af73657082 # Parent 449dd23ac5dfa9c9878b66f7d3ce27e44d3c762e add README.txt and make info page on wiki diff -r 449dd23ac5df -r 0c91843d63c0 CbC_Documents/README.txt --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/CbC_Documents/README.txt Mon Aug 19 14:02:11 2013 +0900 @@ -0,0 +1,54 @@ +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!