about summary refs log tree commit diff stats
path: root/apps
diff options
context:
space:
mode:
Diffstat (limited to 'apps')
-rw-r--r--apps/README.md2
-rwxr-xr-xapps/survey_elf (renamed from apps/survey)bin56701 -> 56701 bytes
-rw-r--r--apps/survey_elf.subx (renamed from apps/survey.subx)10
3 files changed, 6 insertions, 6 deletions
diff --git a/apps/README.md b/apps/README.md
index 74b91c3a..665632c2 100644
--- a/apps/README.md
+++ b/apps/README.md
@@ -15,7 +15,7 @@ Some apps written in SubX and Mu. Check out:
   all the different syntax sugars and what they expand to.
 
 * Code unique to phases of our build toolchain:
-  * Core SubX: `hex`, `survey`, `pack`, `dquotes`, `assort`, `tests`
+  * Core SubX: `hex`, `survey_elf`, `pack`, `dquotes`, `assort`, `tests`
   * Syntax sugar for SubX: `sigils`, `calls`, `braces`
   * More ambitious translator for a memory-safe language (in progress): `mu`
 
diff --git a/apps/survey b/apps/survey_elf
index 67808f49..67808f49 100755
--- a/apps/survey
+++ b/apps/survey_elf
Binary files differdiff --git a/apps/survey.subx b/apps/survey_elf.subx
index 80c5194e..65d610c7 100644
--- a/apps/survey.subx
+++ b/apps/survey_elf.subx
@@ -2,13 +2,13 @@
 # (landscape).
 # Use the addresses assigned to:
 #   a) replace labels
-#   b) add segment headers with addresses and offsets correctly filled in
+#   b) add an ELF header and segment headers with addresses and offsets correctly filled in
 #
 # To build:
-#   $ ./bootstrap translate init.linux 0*.subx apps/subx-params.subx apps/survey.subx  -o apps/survey
+#   $ ./bootstrap translate init.linux 0*.subx apps/subx-params.subx apps/survey_elf.subx  -o apps/survey_elf
 #
-# The expected input is a stream of bytes with segment headers, comments and
-# some interspersed labels.
+# The expected input is a stream of bytes with '==' segment headers, comments
+# and some interspersed labels.
 #   $ cat x
 #   == code 0x1
 #   l1:
@@ -23,7 +23,7 @@
 # The output is the stream of bytes without segment headers or label definitions,
 # and with label references replaced with numeric values/displacements.
 #
-#   $ cat x  |./bootstrap run apps/survey
+#   $ cat x  |./bootstrap run apps/survey_elf
 #   ...ELF header bytes...
 #   # ELF header above will specify that code segment begins at this offset
 #   aa bb nn  # some computed address