1
Fork 0
This commit is contained in:
Jan-Erik Rediger 2024-05-15 12:48:29 +02:00
parent 98e1f635c8
commit 5200cf3c88
2 changed files with 0 additions and 38 deletions

View file

@ -16,7 +16,6 @@
{ {
default = pkgs.mkShell { default = pkgs.mkShell {
buildInputs = [ buildInputs = [
pkgs.qbe
harec harec
hare hare
]; ];

View file

@ -1,37 +0,0 @@
set -o pipefail
function header() {
echo
echo
echo "# ----------------------------------------------------------------"
echo ".file \"$1\""
echo "# ----------------------------------------------------------------"
echo
}
args=
code=
until [ $# -eq 0 ]; do
case $1 in
--)
;;
-o|-I|-arch)
args="$args $1 $2"
shift
;;
-*)
args="$args $1"
;;
*)
# file="$(fix_asm $1)"
# # IFS=$'\n'
file=$(cat "$1")
code="$code$(header $1)"$'\n'"$file"
;;
esac
shift
done
echo "jer"
echo "$code" | fix_asm | as $args -