Skip to content

Commit

Permalink
Merge branch 'master' of https://github.com/SRI-CSL/gllvm
Browse files Browse the repository at this point in the history
  • Loading branch information
ianamason committed May 2, 2018
2 parents cda95a4 + 96329fb commit b51e738
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 4 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
[![Go Report Card](https://goreportcard.com/badge/github.com/SRI-CSL/gllvm)](https://goreportcard.com/report/github.com/SRI-CSL/gllvm)

**TL; DR:** A drop-in replacement for [wllvm](https://github.com/SRI-CSL/whole-program-llvm), that builds the
bitcode in parallel, and is faster.
bitcode in parallel, and is faster. A comparison between the two tools can be gleaned from building the [Linux kernel.](https://github.com/SRI-CSL/gllvm/tree/master/examples/linux-kernel)

## Quick Start Comparison Table

Expand Down
26 changes: 23 additions & 3 deletions examples/linux-kernel/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ the relatively simple task. We assume familiarity with Vagrant.

## Vagrantfile

```
```ruby
# -*- mode: ruby -*-
# vi: set ft=ruby :

Expand All @@ -28,7 +28,7 @@ end

## Bootstrapping

```
```bash
#!/usr/bin/env bash

sudo apt-get update
Expand All @@ -54,6 +54,24 @@ echo ". /vagrant/bash_profile" >> /home/vagrant/.bashrc

```

## Shell Settings

```bash
#### llvm
export LLVM_HOME=/usr/lib/llvm-5.0
export GOPATH=/vagrant/go

######## gllvm/wllvm configuration #############

export LLVM_COMPILER=clang
export WLLVM_OUTPUT_LEVEL=WARNING
export WLLVM_OUTPUT_FILE=/vagrant/wrapper.log
export PATH=${GOPATH}/bin:${PATH}

```



## Configuration stuff.

The file `tinyconfig64` is generated ...
Expand All @@ -63,7 +81,7 @@ The file `tinyconfig64` is generated ...
The build process is carried out by running the `build_linux_gllvm.sh`
script.

```
```bash
#!/usr/bin/env bash

export GOPATH=/vagrant/go
Expand All @@ -86,3 +104,5 @@ get-bc -m vmlinux

```

## Extracting the bitcode

0 comments on commit b51e738

Please sign in to comment.