about summary refs log tree commit diff stats
path: root/linux/labels_baremetal
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2021-08-22 21:38:22 -0700
committerKartik K. Agaram <vc@akkartik.com>2021-08-22 21:40:03 -0700
commitba4a3c5be70d473479e663be0400b798f88c113d (patch)
treed0e332d7d67302cef5ef31e17152aeaec01b8ab6 /linux/labels_baremetal
parent5c26d765c7b0f263b48fcb5e903c2f284027859b (diff)
downloadmu-ba4a3c5be70d473479e663be0400b798f88c113d.tar.gz
start throwing error on labels too far for /disp8
While I'm doing this I might as well lay out a story I don't seem to
have told before in this commit log.

I translated Mu programs to Linux before I did so to bare metal like I
do in the top-level these days. The translator programs still run from
the linux/ directory. However they don't always have good error
messages. As long as I was translating to Linux this wasn't a huge deal
because I always translated Mu programs using the bootstrap translator
in linux/bootstrap/ -- which has great error messages. However,
linux/bootstrap/ can't build bare-metal programs because boot.subx uses
real-mode instructions that aren't supported. As a hack I created a
script called misc_checks that at least tries to run everything besides
boot.subx -- even though translation can never succeed. If I run it and
get to errors about unknown variables I know everything besides
boot.subx raised no errors.

Having labels too far in /disp8 args is is the single biggest reason we
need the misc_checks hack. Hopefully it's now obsolete.
Diffstat (limited to 'linux/labels_baremetal')
-rwxr-xr-xlinux/labels_baremetalbin52042 -> 52290 bytes
1 files changed, 0 insertions, 0 deletions
diff --git a/linux/labels_baremetal b/linux/labels_baremetal
index ce80777e..c1db3ad6 100755
--- a/linux/labels_baremetal
+++ b/linux/labels_baremetal
Binary files differ