diff options
author | Kartik Agaram <vc@akkartik.com> | 2019-12-07 15:20:44 -0800 |
---|---|---|
committer | Kartik Agaram <vc@akkartik.com> | 2019-12-07 18:05:06 -0800 |
commit | c1d596f56a6f2198ea8ea1b0a90c613e919d891b (patch) | |
tree | 6e44703f23864ad78dd68e7b0a9229f54a46b281 /treeshake_ntranslate | |
parent | e9aee071f44876bcce4d741eea52198249e5b339 (diff) | |
download | mu-c1d596f56a6f2198ea8ea1b0a90c613e919d891b.tar.gz |
5796 - move treeshake to a new tools/ directory
Diffstat (limited to 'treeshake_ntranslate')
-rwxr-xr-x | treeshake_ntranslate | 40 |
1 files changed, 0 insertions, 40 deletions
diff --git a/treeshake_ntranslate b/treeshake_ntranslate deleted file mode 100755 index 7a54e436..00000000 --- a/treeshake_ntranslate +++ /dev/null @@ -1,40 +0,0 @@ -#!/bin/sh -# Translate SubX by running the minified self-hosted translator natively on Linux. -# This script is a hack; see the other *translate scripts instead. - -set -e - -./build - -cat $* |apps/braces.treeshake.bin > a.braces - -cat a.braces |apps/calls.treeshake.bin > a.calls - -cat a.calls |apps/sigils.treeshake.bin > a.sigils - -cat a.sigils |apps/tests.treeshake.bin > a.tests - -cat a.tests |apps/assort.treeshake.bin > a.assort - -cat a.assort |apps/dquotes.treeshake.bin > a.dquotes - -# A little hack. We want ntranslate to always emit identical binaries to the -# C++ translator. The C++ translator assorts segments before it processes -# string literals, so we follow the same order above. -# -# However, dquotes currently emits a separate data segment for string literals. -# So we need to run assort a second time to clean up after it. -# -# Potential solutions: -# a) modify C++ translator to process string literals before assorting. -# b) clean up dquotes to assume assorted segments, and append to the -# existing data segment. -cat a.dquotes |apps/assort.treeshake.bin > a.assort2 - -cat a.assort2 |apps/pack.treeshake.bin > a.pack - -cat a.pack |apps/survey.treeshake.bin > a.survey - -cat a.survey |apps/hex.treeshake.bin > a.elf - -chmod +x a.elf |