-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathREADME
62 lines (50 loc) · 2.11 KB
/
README
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
------------------------------------------------------------------------------
MCLinker Project
------------------------------------------------------------------------------
============
Introduction
============
MCLinker is a UIUC license linkage editor.
========================
Compilation Instructions
========================
The simplest way to compile this package is:
----------------------
Prepare LLVM
----------------------
0.a Download LLVM@r187732
`svn co -r 187732 http://llvm.org/svn/llvm-project/llvm/trunk llvm-src'
0.b Type `cd llvm-src' to enter the directory containing LLVM source code
0.c Build and install LLVM
cd ..
mkdir llvm-build && cd ./llvm-build
../llvm/configure --prefix=${LLVM_INSTALL}
make all install
--------------
Build MCLinker
--------------
1. Download MCLinker tarball from the website
http://code.google.com/p/mclinker
2. Type `cd ${MCLinker}' to the directory containing the source code.
3. If there are no `configure' shell script in the directory, type
`./autogen.sh' to generate `configure' script.
4. Type `./configure` to configure the package for your system. See INSTALL
for more details.
./configure --prefix=${MCLINKER_INSTALL} \
--with-llvm-config=${LLVM_INSTALL}/bin/llvm-config
5. Type `make` to compile the package
6. Type `make install` to install the package into your system.
7. ${MCLINKER_INSTALL}/ld.mcld is the linker binary, and
${MCLINKER_INSTALL}/ld.bcc is Android's bcc linker.
===================
Directory Structure
===================
README - this document
Makefile.am - input of automake
configure.ac - input of autoconf
src/ - source code of verification tool
include/ - include file, exported interface
lib/ - source code of exported interface
debug/ - placeholder of object files which are compiled for debugging
optimized/ - placeholder of object files which are compiled for optimization
test/ - placeholder of testcases