ref: 117118076b731357763239ca40df59c49340dd0b
parent: abdbf2e791f1fbfb2fc3de75337adda5055f65b6
author: Lennart Augustsson <lennart.augustsson@epicgames.com>
date: Sun Aug 20 10:22:59 EDT 2023
More docs
--- a/README.md
+++ b/README.md
@@ -87,6 +87,7 @@
It uses combinators for handling variables, and has some primitive operations
for integers and for executing IO operations.
There is a also a simple mark-scan garbage collector.
+It is written in a reasonably portable C code.
### Runtime flags
* `-HSIZE` set heap size to `SIZE` cells, can be suffixed by `k`, `M`, or `G`
@@ -105,10 +106,10 @@
The combinator file for the compiler itself is available in `comb/mhs.comb`.
The bootstrapping process takes about 30s.
To bootstrap:
- * build the evaluator `make bin/eval`, this requires a C compiler
- * compiler the compiler
-```
-bin/eval -H50M -rcomb/mhs.comb -- -ilib -isrc -onewmhs.comb MicroHs.Main
-```
+ * build the evaluator, `make bin/eval`, this requires a C compiler
+ * compile the compiler
+ ```
+ bin/eval -H50M -rcomb/mhs.comb -- -ilib -isrc -onewmhs.comb MicroHs.Main
+ ```
* The file `newmhs.comb` is the new combinator binary and it should be
identical to `comb/mhs.comb`.
--- a/src/runtime/eval.c
+++ b/src/runtime/eval.c
@@ -1386,7 +1386,7 @@
else if (strcmp(argv[-1], "--") == 0)
break;
else
- ERR("Usage: eval [-v] [-Hheap-size] [-rFILE] [-- arg ...]");+ ERR("Usage: eval [-v] [-Hheap-size] [-Kstack-size] [-rFILE] [-- arg ...]");}
glob_argc = argc;
glob_argv = argv;
--
⑨