about summary refs log tree commit diff stats
path: root/translate_mu_baremetal_emulated
diff options
context:
space:
mode:
authorKartik Agaram <vc@akkartik.com>2021-01-12 23:04:06 -0800
committerKartik Agaram <vc@akkartik.com>2021-01-12 23:04:06 -0800
commit8a81faecbe3c4bb2dbcbfc427f694b7932a1c5e5 (patch)
tree9066ba533c0b412ce0e8c924f0f3fc8d5b916e6e /translate_mu_baremetal_emulated
parentfcad74b7b102e68ecdc564fc03621b6dd6f495eb (diff)
downloadmu-8a81faecbe3c4bb2dbcbfc427f694b7932a1c5e5.tar.gz
7506
Diffstat (limited to 'translate_mu_baremetal_emulated')
-rwxr-xr-xtranslate_mu_baremetal_emulated12
1 files changed, 12 insertions, 0 deletions
diff --git a/translate_mu_baremetal_emulated b/translate_mu_baremetal_emulated
new file mode 100755
index 00000000..d7ff2c6d
--- /dev/null
+++ b/translate_mu_baremetal_emulated
@@ -0,0 +1,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