[tools] llvm-arm reduce code size.

This commit is contained in:
guo 2023-05-18 21:54:17 +08:00 committed by Man, Jianting (Meco)
parent ca873fae30
commit 606ad9272b
1 changed files with 1 additions and 0 deletions

View File

@ -192,6 +192,7 @@ elif PLATFORM == 'llvm-arm':
OBJDUMP = PREFIX + 'objdump'
OBJCPY = PREFIX + 'objcopy'
DEVICE = ' --config armv7em_hard_fpv4_sp_d16.cfg'
DEVICE += ' -ffunction-sections -fdata-sections'
CFLAGS = DEVICE
CFLAGS += ' -mfloat-abi=hard -march=armv7em -mfpu=fpv4-sp-d16'
AFLAGS = ' -c' + DEVICE + ' -Wa,-mimplicit-it=thumb ' ## -x assembler-with-cpp