Browse Source

Update READMEs

master
Přemysl Janouch 2 years ago
parent
commit
99330e88f2
Signed by: Přemysl Janouch <p.janouch@gmail.com> GPG Key ID: B715679E3A361BE6
2 changed files with 9 additions and 3 deletions
  1. 3
    2
      README.adoc
  2. 6
    1
      interpreters/README.adoc

+ 3
- 2
README.adoc View File

@@ -29,8 +29,9 @@ Usage
29 29
 
30 30
  ./bfc-amd64-linux [INPUT-FILE] [OUTPUT-FILE]
31 31
 
32
-When no input file is specified, stdin is used.  Similarly, the default output
33
-filename is a.out.  The resulting file can be run on the target platform.
32
+When no input file is specified, standard input is used.  Similarly, the default
33
+output filename is `a.out`.  After the compilation, the resulting file can be
34
+run on the target platform.
34 35
 
35 36
 Contributing and Support
36 37
 ------------------------

+ 6
- 1
interpreters/README.adoc View File

@@ -9,7 +9,12 @@ sophistication, from the simplest approach to an optimizing JIT compiler:
9 9
  * `bf-jit-unsafe.c` abolishes all boundary checks when moving across the tape
10 10
  * `bf-jit-unsafe-opt.c` makes use of immediate offsets to modify values
11 11
 
12
-I recommend using a tool such as 'meld' to view the differences.
12
+I recommend using a tool such as _meld_ to view the differences.
13 13
 
14 14
 Just run `make` in this directory to have them all built, and append
15 15
 `CPPFLAGS=-DDEBUG` to get dumps of the IR for the more sophisticated JITs.
16
+The interpreters take the program on standard input and read characters
17
+directly from the terminal device, so to run a simple `cat`-like program,
18
+you can do:
19
+
20
+ $ echo ',[.,]' | ./bf

Loading…
Cancel
Save