Skip to content

Commit cbde42f

Browse files
authored
Update README.md
1 parent c450220 commit cbde42f

File tree

1 file changed

+24
-8
lines changed

1 file changed

+24
-8
lines changed

README.md

+24-8
Original file line numberDiff line numberDiff line change
@@ -15,23 +15,39 @@ At the moment `--target=LLVM` behaves more like a `--no-asm`
1515
switch, eliminating all the assembly for which there are vanilla C definitions.
1616

1717

18-
## Recipe for libc.so.bc
18+
## Recipe for libc.so.bc using gllvm
1919

20-
Install [wllvm.](https://github.com/SRI-CSL/whole-program-llvm.git)
21-
Then:
20+
Install [gllvm,](https://github.com/SRI-CSL/gllvm.git)
21+
then configure via:
22+
```
23+
CC=gclang WLLVM_CONFIGURE_ONLY=1 ./configure --target=LLVM --build=LLVM --prefix=<install dir>
24+
```
25+
Then proceed via
26+
```
27+
make
28+
cd lib
29+
get-bc -b libc.a
30+
cp libc.a.bc <wherever you want your static bitcode library to live>
31+
get-bc libc.so
32+
cp libc.so.bc <wherever you want your shared bitcode library to live>
33+
```
34+
35+
## Recipe for libc.so.bc using wllvm
2236

37+
Install [wllvm,](https://github.com/SRI-CSL/whole-program-llvm.git)
38+
then configure via:
39+
```
40+
CC=wllvm WLLVM_CONFIGURE_ONLY=1 ./configure --target=LLVM --build=LLVM --prefix=<install dir>
41+
```
42+
Then proceed via
2343
```
24-
WLLVM_CONFIGURE_ONLY=1 CC=wllvm ./configure --target=LLVM --build=LLVM --prefix=<install dir>
2544
make
2645
cd lib
27-
extract-bc --bitcode libc.a
46+
extract-bc -b libc.a
2847
cp libc.a.bc <wherever you want your static bitcode library to live>
2948
extract-bc libc.so
3049
cp libc.so.bc <wherever you want your shared bitcode library to live>
3150
```
32-
Note the `--bitcode` option is a recent addition to `wllvm` and currently
33-
only available in [SRI's fork](https://github.com/SRI-CSL/whole-program-llvm),
34-
I will eventually push it up stream, but have not yet.
3551

3652
## Ian's notes on what to do with the bitcode
3753

0 commit comments

Comments
 (0)