run.sh 204 B

1234567891011121314
  1. IN="$(mktemp --suffix .s)"
  2. OUT="$(mktemp)"
  3. TEMP="$(mktemo --suffix .o)"
  4. cat > "$IN"
  5. nasm -felf64 "$IN" -o "$TEMP"
  6. if [ -f $TEMP ]; then
  7. ld "$TEMP" -o "$OUT"
  8. fi
  9. if [ -f $OUT ]; then
  10. exec "$OUT"
  11. fi