mirror of
https://github.com/tillitis/tillitis-key1.git
synced 2025-12-15 16:49:15 -05:00
tkey-libs: Optimize for size
Optimize tkey-libs for size to fit firmware in ROM
This commit is contained in:
parent
353d7e9f50
commit
1be5140850
2 changed files with 12 additions and 2 deletions
|
|
@ -17,7 +17,7 @@ INCLUDE=include
|
|||
# either of them. You don't need to recompile tkey-libs.
|
||||
|
||||
CFLAGS = -target riscv32-unknown-none-elf -march=rv32iczmmul -mabi=ilp32 \
|
||||
-mcmodel=medany -static -std=gnu99 -O2 -ffast-math -fno-common \
|
||||
-mcmodel=medany -static -std=gnu99 -Os -ffast-math -fno-common \
|
||||
-fno-builtin-printf -fno-builtin-putchar -nostdlib -mno-relax -flto \
|
||||
-Wall -Werror=implicit-function-declaration \
|
||||
-I $(INCLUDE) -I .
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue