You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
which will produce the bitcode module `pkg-config.bc`.
123
+
124
+
125
+
Tutorials
126
+
---------
127
+
128
+
A gentler set of instructions on building apache in a vagrant Ubuntu 14.04 can be found
129
+
[here,](https://github.com/SRI-CSL/whole-program-llvm/blob/master/doc/tutorial.md) and for Ubuntu 16.04 [here.](https://github.com/SRI-CSL/whole-program-llvm/blob/master/doc/tutorial-ubuntu-16.04.md)
111
130
112
131
Building a bitcode module with dragonegg
113
-
========================================
132
+
----------------------------------------
114
133
115
134
export LLVM_COMPILER=dragonegg
116
135
export LLVM_GCC_PREFIX=llvm-
@@ -121,12 +140,15 @@ Building a bitcode module with dragonegg
121
140
CC=wllvm ./configure
122
141
make
123
142
124
-
# Produces pkg-config.bc
143
+
Again, this should produce the executable `pkg-config`. To extract the bitcode:
144
+
125
145
extract-bc pkg-config
126
146
147
+
which will produce the bitcode module `pkg-config.bc`.
148
+
127
149
128
150
Building bitcode archive
129
-
========================
151
+
------------------------
130
152
131
153
export LLVM_COMPILER=clang
132
154
tar -xvf bullet-2.81-rev2613.tgz
@@ -138,24 +160,37 @@ Building bitcode archive
138
160
# Produces src/LinearMath/libLinearMath.bca
139
161
extract-bc src/LinearMath/libLinearMath.a
140
162
163
+
Note that by default extracting bitcode from an archive produces
164
+
an archive of bitcode. You can also extract the bitcode directly into a module.
165
+
166
+
extract-bc -b src/LinearMath/libLinearMath.a
167
+
168
+
produces `src/LinearMath/libLinearMath.a.bc`.
169
+
170
+
141
171
142
172
Building an Operating System
143
-
============================
173
+
----------------------------
144
174
145
-
To see how to build freeBSD 10.0 from scratch check out this
146
-
[guide.](../master/README-freeBSD.md)
175
+
To see how to build freeBSD 10.0 from scratch check out this
0 commit comments