Bunch of options to make the machine code slick
This commit is contained in:
parent
5e7deadb65
commit
e24b2f7904
1 changed files with 5 additions and 0 deletions
5
Makefile
5
Makefile
|
@ -4,6 +4,10 @@ CC = gcc
|
|||
CFLAGS = -Wall -Wextra -Werror -Wno-unused-parameter
|
||||
CFLAGS += -Wno-unused-variable -Wno-unused-function
|
||||
CFLAGS += -Wno-unused-but-set-variable -Wno-unused-value -Wno-unused-label
|
||||
CFLAGS += -Wno-unused-result -Wno-unused-const-variable
|
||||
CFLAGS += -fno-exceptions -fno-asynchronous-unwind-tables -fno-ident
|
||||
CFLAGS += -fno-unwind-tables -fno-stack-protector -fno-plt -fno-pic
|
||||
CFLAGS += -O3 -std=c99 -march=native -mtune=native -fomit-frame-pointer
|
||||
|
||||
C_SOURCES = $(wildcard *.c)
|
||||
C_HEADERS = $(wildcard *.h)
|
||||
|
@ -19,6 +23,7 @@ all: $(OBJECTS)
|
|||
%.s: %.c $(C_HEADERS)
|
||||
@echo "CC $<"
|
||||
@$(CC) $(CFLAGS) -S -masm=intel $<
|
||||
wc -l $@
|
||||
|
||||
clean:
|
||||
rm -f $(OBJECTS) $(ASMS)
|
||||
|
|
Loading…
Reference in a new issue