Skip to content

Commit

Permalink
Make instructions more clear
Browse files Browse the repository at this point in the history
  • Loading branch information
romildo committed Oct 17, 2016
1 parent 78fcc90 commit 8e9cd17
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,14 @@ $ clang -o <file>.exe src/main/c/bindings.c <file>.s
Or if using GCC:

```
$ gcc -o <file>.exe src/main/c/bindings.c <file>.s
$ gcc -o <file>.exe <file>.s src/main/c/bindings.c
```

To get an image of the syntact tree of your program:

```
$ dot -O -Tpng <file>.dot <file>.dot
$ eog <file>.dot.png
```

Finally run the binary obtained for the eplan source code:
Expand All @@ -154,9 +161,7 @@ Finally run the binary obtained for the eplan source code:
$ ./<file>.exe
```

To get an image of the syntact tree of your program:

These steps can be combined in a single command line:
```
$ dot -O -Tpng <file>.dot <file>.dot
$ eog <file>.dot.png
$ F=<file> && ./driver $F && llc $F.ll && clang -o $F.exe $F.s src/main/c/bindings.c && dot -O -Tpng $F.dot && eog $F*png && ./$F.exe
```

0 comments on commit 8e9cd17

Please sign in to comment.