Created
May 21, 2020 09:16
-
-
Save thecaralice/62c60442d4bb904bb87e0ca5fa1b9473 to your computer and use it in GitHub Desktop.
Compiler script for NASM
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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