about summary refs log blame commit diff stats
path: root/translate_mu_baremetal_emulated
blob: d7ff2c6d68cb881d96aaaea3cfb68dcc9ee3f199 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12











                                                                                       
#!/bin/sh
# Translate a given Mu program to 'baremetal', a raw disk image that can boot
# and run without any OS.
#
# This script uses emulation, so it does not require x86 or Linux. However it
# is slow.

set -e

cat $* baremetal/[0-9]*.mu    |./bootstrap run apps/mu    > a.subx

./translate_subx_baremetal_emulated baremetal/mu-init.subx baremetal/[0-9]*.subx a.subx