about summary refs log tree commit diff stats
path: root/arc/.traces/le-literal-true
blob: c8682ca19989d49520e6d66389007247c42e7ad8 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
c{0: 0 (((1 boolean)) <- ((lesser-or-equal)) ((4 literal)) ((4 literal))) -- nil
c{1: 0 ✓ (((1 boolean)) <- ((lesser-or-equal)) ((4 literal)) ((4 literal)))
cn0: convert-names in main
cn0: (((1 boolean)) <- ((lesser-or-equal)) ((4 literal)) ((4 literal))) nil nil
cn0: checking arg ((4 literal))
cn0: checking arg ((4 literal))
cn0: checking oarg ((1 boolean))
maybe-add: ((1 boolean))
cn1: (((1 boolean)) <- ((lesser-or-equal)) ((4 literal)) ((4 literal)))
schedule: main
run: main 0: (((1 boolean)) <- ((lesser-or-equal)) ((4 literal)) ((4 literal)))
run: main 0: t => ((1 boolean))
mem: ((1 boolean)): 1 <= t
schedule: done with routine nil
t .sc { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Char */ .highlight .dl { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Delimiter */ .highlight .sd { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Doc */ .highlight .s2 { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Double */ .highlight .se { color: #0044dd; background-color: #fff0f0 } /* Literal.String.Escape */ .highlight .sh { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Heredoc */ .highlight .si { color: #3333bb; background-color: #fff0f0 } /* Literal.String.Interpol */ .highlight .sx { color: #22bb22; background-color: #f0fff0 } /* Literal.String.Other */ .highlight .sr { color: #008800; background-color: #fff0ff } /* Literal.String.Regex */ .highlight .s1 { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Single */ .highlight .ss { color: #aa6600; background-color: #fff0f0 } /* Literal.String.Symbol */ .highlight .bp { color: #003388 } /* Name.Builtin.Pseudo */ .highlight .fm { color: #0066bb; font-weight: bold } /* Name.Function.Magic */ .highlight .vc { color: #336699 } /* Name.Variable.Class */ .highlight .vg { color: #dd7700 } /* Name.Variable.Global */ .highlight .vi { color: #3333bb } /* Name.Variable.Instance */ .highlight .vm { color: #336699 } /* Name.Variable.Magic */ .highlight .il { color: #0000DD; font-weight: bold } /* Literal.Number.Integer.Long */
#!/bin/sh
# Build one or more .subx files into an ELF binary, and package it up into a
# bootable ISO image with a Soso (https://github.com/ozkl/soso) kernel.
#
# Must be run on Linux.
#
# Soso is published under the 2-clause BSD license.

set -e

if [ $# -eq 0 ]
then
  echo "Usage: `basename $0` file.subx ..."
  exit 1
fi

echo "=== building SubX binary"
./ntranslate $*
mv a.elf init
chmod +x init

echo "=== constructing initramfs out of SubX binary"
dd if=/dev/zero of=initrd.fat bs=8M count=1
LOOP=`losetup -f`
sudo losetup $LOOP initrd.fat
sudo mkfs.vfat $LOOP
sudo mount $LOOP /mnt
cp init /mnt/
umount /mnt
losetup -d $LOOP
sync
chown $SUDO_USER:$SUDO_USER initrd.fat

echo "=== building soso kernel"
( cd kernel.soso
  make
)

echo "=== generating mu_soso.iso"
mkdir -p outfs/boot/grub
cp kernel.soso/grub.cfg outfs/boot/grub
cp kernel.soso/kernel.bin outfs/boot/
cp initrd.fat outfs/boot/
grub-mkrescue -o mu_soso.iso outfs