Created
March 22, 2020 09:35
-
-
Save playniuniu/76226bb42babbd38fb9c29f133c81498 to your computer and use it in GitHub Desktop.
Genreate Pure ASM
This file contains hidden or 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
| BUILD_FLAG=-Og -masm=intel -fno-exceptions -fno-asynchronous-unwind-tables -fno-stack-protector | |
| run: build | |
| output/main | |
| build: | |
| gcc ${BUILD_FLAG} -o output/main src/main.c | |
| asm: | |
| gcc ${BUILD_FLAG} -S -o output/main.asm src/main.c | |
| bat output/main.asm | |
| clean: | |
| rm -f output/* | |
| .PHONY: clean |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment