-CFLAGS_BASE = -fgnu89-inline -ffreestanding -nostdlib -Iinclude -Iinclude/arch/x86 -g -DGIT_COMMIT=\"$(GIT_REV)\"
-LDFLAGS_BASE = -ffreestanding -nostdlib -lgcc -g
+CFLAGS_BASE = -fgnu89-inline -ffreestanding -nostdlib -Iinclude \
+ -Iinclude/arch/x86 -g -DGIT_COMMIT=\"$(GIT_REV)\" \
+ -O2 -flto
+LDFLAGS_BASE = -ffreestanding -nostdlib -lgcc -g -flto