From 99330e88f23a7e5aa0758bb9c934db395950ab2d Mon Sep 17 00:00:00 2001 From: Přemysl Janouch Date: Thu, 22 Dec 2016 23:40:30 +0100 Subject: Update READMEs --- interpreters/README.adoc | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'interpreters') diff --git a/interpreters/README.adoc b/interpreters/README.adoc index ecde608..11e45d3 100644 --- a/interpreters/README.adoc +++ b/interpreters/README.adoc @@ -9,7 +9,12 @@ sophistication, from the simplest approach to an optimizing JIT compiler: * `bf-jit-unsafe.c` abolishes all boundary checks when moving across the tape * `bf-jit-unsafe-opt.c` makes use of immediate offsets to modify values -I recommend using a tool such as 'meld' to view the differences. +I recommend using a tool such as _meld_ to view the differences. Just run `make` in this directory to have them all built, and append `CPPFLAGS=-DDEBUG` to get dumps of the IR for the more sophisticated JITs. +The interpreters take the program on standard input and read characters +directly from the terminal device, so to run a simple `cat`-like program, +you can do: + + $ echo ',[.,]' | ./bf -- cgit v1.2.3-70-g09d2