From c1d596f56a6f2198ea8ea1b0a90c613e919d891b Mon Sep 17 00:00:00 2001 From: Kartik Agaram <vc@akkartik.com> Date: Sat, 7 Dec 2019 15:20:44 -0800 Subject: 5796 - move treeshake to a new tools/ directory --- treeshake_ntranslate | 40 ---------------------------------------- 1 file changed, 40 deletions(-) delete mode 100755 treeshake_ntranslate (limited to 'treeshake_ntranslate') 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 -- cgit 1.4.1-2-gfad0