Turn on VBCC optimization so the compiler doesn't do too stupid stuff.

This commit is contained in:
Vincent Barrilliot 2023-12-07 22:16:06 +01:00
parent 1c338e73c5
commit be02c0fab0

View file

@ -195,7 +195,7 @@ else
CFLAGS_EXTRA=-D__NOINLINE__
else
endif
CFLAGS =-c -S -cpu=$(VBCC_CPU) +$(CFG_FILE) $(CFLAGS_EXTRA)
CFLAGS =-c -S -cpu=$(VBCC_CPU) +$(CFG_FILE) $(CFLAGS_EXTRA) -O2
LDFLAGS = +$(CFG_FILE)
endif
@ -286,7 +286,7 @@ foenixmcp.s68: $(DEPS)
foenixmcp.bin: $(DEPS)
$(CC) $(LDFLAGS) -o $@ $(FILES_TO_LINK)
# TODO Test that the file is <= PAD_FLASH_SIZE bytes otherwise'll be slashing the OS !
$(PAD_CMD)
# $(PAD_CMD)
# Rule for generating include file containing RLE-compressed version of BMP splashscreen
# You need python3 installed obviously, and install some extra packages you can install with: