Skip to content

Instantly share code, notes, and snippets.

@playniuniu
Created March 22, 2020 09:35
Show Gist options
  • Select an option

  • Save playniuniu/76226bb42babbd38fb9c29f133c81498 to your computer and use it in GitHub Desktop.

Select an option

Save playniuniu/76226bb42babbd38fb9c29f133c81498 to your computer and use it in GitHub Desktop.
Genreate Pure ASM
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