Skip to content

Instantly share code, notes, and snippets.

@thecaralice
Created May 21, 2020 09:16
Show Gist options
  • Save thecaralice/62c60442d4bb904bb87e0ca5fa1b9473 to your computer and use it in GitHub Desktop.
Save thecaralice/62c60442d4bb904bb87e0ca5fa1b9473 to your computer and use it in GitHub Desktop.
Compiler script for NASM
#!/bin/zsh
filename="${1%.*}"
nasm -felf32 $1 && \
ld -melf_i386 -s -o $filename $filename.o && \
rm $filename.o
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment