@@ -76,10 +76,10 @@ If you built using CMake on Unix, you should be able to run the
7676Find or write a moderately-interesting C program; we'll call it ` main.c ` .
7777Run the following commands:
7878
79- goto-gcc -o main.goto main.c
79+ goto-gcc -o main.gb main.c
8080 cc -o main.exe main.c
8181
82- Invoke ` ./main.goto ` and ` ./main.exe ` and observe that they run identically.
82+ Invoke ` ./main.gb ` and ` ./main.exe ` and observe that they run identically.
8383The version that was compiled with ` goto-gcc ` is larger, though:
8484
8585 du -hs *.{goto,exe}
@@ -95,7 +95,7 @@ is (informally) called a *goto-program*.
9595` goto-instrument ` is a Swiss army knife for viewing goto-programs and
9696performing single program analyses on them. Run the following command:
9797
98- goto-instrument --show-goto-functions main.goto
98+ goto-instrument --show-goto-functions main.gb
9999
100100Many of the instructions in the goto-program intermediate representation
101101are similar to their C counterparts. ` if ` and ` goto ` statements replace
@@ -105,7 +105,7 @@ Find or write a small C program (2 or 3 functions, each containing a few
105105varied statements). Compile it using ` goto-gcc ` as above into an object
106106file called ` main ` . You can write the diagram to a file and then view it:
107107
108- goto-instrument --dot main.goto | tail -n +2 | dot -Tpng > main.png
108+ goto-instrument --dot main.gb | tail -n +2 | dot -Tpng > main.png
109109 open main.png
110110
111111(the invocation of ` tail ` is used to filter out the first line of
@@ -143,7 +143,7 @@ At some point in that function, there will be a long sequence of `if` statements
143143** Task:** Add a ` --greet ` switch to ` goto-instrument ` , taking an optional
144144argument, with the following behaviour:
145145
146- $ goto-instrument --greet main.goto
146+ $ goto-instrument --greet main.gb
147147 hello, world!
148148 $ goto-instrument --greet Leperina main
149149 hello, Leperina!
0 commit comments