Mercurial > hg > Members > tobaru > cbc > CbC_llvm
comparison CbC_Documents/README.txt @ 13:0c91843d63c0
add README.txt and make info page on wiki
author | Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp> |
---|---|
date | Mon, 19 Aug 2013 14:02:11 +0900 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
12:449dd23ac5df | 13:0c91843d63c0 |
---|---|
1 infomation for CbC project on LLVM | |
2 Japanese infomation is here (http://www.cr.ie.u-ryukyu.ac.jp/~game/pukiwiki/index.php?llvm) | |
3 | |
4 | |
5 * install CbC_llvm | |
6 | |
7 | |
8 1. get CbC_llvm from mercurial | |
9 | |
10 $ hg clone ssh://one@www.cr.ie.u-ryukyu.ac.jp/hg/CbC/CbC_llvm (dist dir) | |
11 | |
12 2. make directory for install (!! You shouldn't install CbC_llvm soruce directory , you must make another directory for install. !!) | |
13 | |
14 $ mkdir (install dir path) | |
15 $ cd (install dir path) | |
16 | |
17 3. exec configure with options. | |
18 | |
19 $ (CbC_llvm path)/configure --prefix=$PWD --disable-optimized --enable-debug-runtime --enable-debug-symbols --enable-assertions --disable-bootstrap --enable-languages=c | |
20 | |
21 when you want option's infomation , look at llvm documents. | |
22 | |
23 4. make | |
24 | |
25 $ make -j | |
26 | |
27 if errors occuerd , remove option '-j' and remake it. | |
28 | |
29 5. check llvm | |
30 | |
31 $ (install dir path)/Debug+Asserts/bin/clang -v | |
32 | |
33 You can watch version info if make succeeded. | |
34 | |
35 | |
36 | |
37 * check llvm version without installing | |
38 | |
39 $ configure -V | |
40 | |
41 | |
42 * run on gdb | |
43 | |
44 1. compile source file with onption -v. (get args for run on gdb) | |
45 | |
46 $ (CbC_LLVM) (source file) -v |& grep cc1 | |
47 | |
48 then, copy outputed line which has many arguments. | |
49 | |
50 2. exec gdb | |
51 | |
52 $ gdb --args (source file path) (paste copied args here) | |
53 | |
54 gdb should work! |