#!/bin/bash # NOTE: Only for macOS (intel) if [ -z "$1" ] then echo "Usage: $0 " exit 1 fi set -xe nasm -f macho64 -o $1.o $1 ld -lSystem $1.o