blob: 457fb1c926411507f930537c908c7c2c1b3a8113 (
plain) (
tree)
|
|
#!/bin/sh
# Translate SubX by running the self-hosted translator natively on Linux.
#
# Possible knobs:
# Whether to run a phase natively or in emulated mode.
# This script is for running natively.
# Whether to stop after a phase.
# This script assumes inputs are already working so doesn't easily show
# which phase an error happens in.
# Whether to trace a phase. Whether to always trace or rerun with tracing
# enabled after an error.
# Leave tracing to other scripts. We save intermediate files so it's easy
# to rerun a single phase afterwards.
# Whether to run a phase with debug information. (Need to juggle multiple
# sets of debug files.)
# Again, that's for subsequent scripts.
set -e
./build
cat $* |apps/calls > a.calls
cat a.calls |apps/sigils > a.sigils
cat a.sigils |apps/tests > a.tests
cat a.tests |apps/dquotes > a.dquotes
cat a.dquotes |apps/assort > a.assort
cat a.assort |apps/pack > a.pack
cat a.pack |apps/survey > a.survey
cat a.survey |apps/hex > a.elf
chmod +x a.elf
|