about summary refs log tree commit diff stats
path: root/subx/clean
Commit message (Expand)AuthorAgeFilesLines
* 4013Kartik K. Agaram2017-10-111-1/+1
* 4011 - start of sub-x86 VMKartik K. Agaram2017-10-091-1/+1
* 3930 - experimental bytecode interpreterKartik K. Agaram2017-06-191-0/+6
e previous revision' href='/akkartik/mu/blame/subx/translate?h=main&id=31cb01daf4c481736e151dde88d1ec55005f6347'>^
571bf69f ^
a03bbc82 ^

571bf69f ^







a03bbc82 ^


a03bbc82 ^
300f4554 ^
a03bbc82 ^
9e5e87ca ^
9e5e87ca ^
9e5e87ca ^
9e5e87ca ^
9e5e87ca ^
9e5e87ca ^
9e5e87ca ^
9e5e87ca ^
9e5e87ca ^
531f14c9 ^

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
         

                                                                          

                 
                                                        

                                                              







                                                                             


                                           
 
       
 
                                                             
                                                            
                                                             
                                                            
                                                              
                                                             
                                                           
                                                             
                                                          

              
#!/bin/sh
# Translate SubX by running the self-hosted translator in emulated mode on
# Linux or BSD or Mac.
#
# Possible knobs:
#   Whether to run a phase natively or in emulated mode.
#     Just always emulate for now since we debug on non-Linux.
#   Whether to stop after a phase.
#     Just always run all phases, but print out phases so it's clear where an
#     error happens.
#   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 $*          |./bootstrap_bin run apps/braces   > a.braces
cat a.braces    |./bootstrap_bin run apps/calls    > a.calls
cat a.calls     |./bootstrap_bin run apps/sigils   > a.sigils
cat a.sigils    |./bootstrap_bin run apps/tests    > a.tests
cat a.tests     |./bootstrap_bin run apps/dquotes  > a.dquotes
cat a.dquotes   |./bootstrap_bin run apps/assort   > a.assort
cat a.assort    |./bootstrap_bin run apps/pack     > a.pack
cat a.pack      |./bootstrap_bin run apps/survey   > a.survey
cat a.survey    |./bootstrap_bin run apps/hex      > a.elf

chmod +x a.elf