@@ -17,6 +17,12 @@ compiler.warning_flags.default=
17
17
compiler.warning_flags.more=-Wall
18
18
compiler.warning_flags.all=-Wall -Wextra
19
19
20
+ # EXPERIMENTAL feature: optimization flags
21
+ # - this is alpha and may be subject to change without notice
22
+ compiler.optimization_flags={compiler.optimization_flags}
23
+ compiler.optimization_flags.release={build.flags.optimize} {build.flags.debug}
24
+ compiler.optimization_flags.debug=-Og -g
25
+
20
26
compiler.path={runtime.tools.xpack-arm-none-eabi-gcc-12.2.1-1.2.path}/bin/
21
27
22
28
compiler.S.cmd=arm-none-eabi-gcc
@@ -32,13 +38,13 @@ compiler.extra_flags=-mcpu={build.mcu} {build.fpu} {build.float-abi} -DVECT_TAB_
32
38
33
39
compiler.S.flags={compiler.extra_flags} -c -x assembler-with-cpp {compiler.stm.extra_include}
34
40
35
- compiler.c.flags={compiler.extra_flags} -c {build.flags.optimize} {build.flags.debug } {compiler.warning_flags} -std={compiler.c.std} -ffunction-sections -fdata-sections --param max-inline-insns-single=500 -MMD {compiler.stm.extra_include}
41
+ compiler.c.flags={compiler.extra_flags} -c {compiler.optimization_flags } {compiler.warning_flags} -std={compiler.c.std} -ffunction-sections -fdata-sections --param max-inline-insns-single=500 -MMD {compiler.stm.extra_include}
36
42
37
- compiler.cpp.flags={compiler.extra_flags} -c {build.flags.optimize} {build.flags.debug } {compiler.warning_flags} -std={compiler.cpp.std} -ffunction-sections -fdata-sections -fno-threadsafe-statics --param max-inline-insns-single=500 -fno-rtti -fno-exceptions -fno-use-cxa-atexit -MMD {compiler.stm.extra_include}
43
+ compiler.cpp.flags={compiler.extra_flags} -c {compiler.optimization_flags } {compiler.warning_flags} -std={compiler.cpp.std} -ffunction-sections -fdata-sections -fno-threadsafe-statics --param max-inline-insns-single=500 -fno-rtti -fno-exceptions -fno-use-cxa-atexit -MMD {compiler.stm.extra_include}
38
44
39
45
compiler.ar.flags=rcs
40
46
41
- compiler.c.elf.flags=-mcpu={build.mcu} {build.fpu} {build.float-abi} -mthumb {build.flags.optimize} {build.flags.debug } {build.flags.ldspecs} -Wl,--defsym=LD_FLASH_OFFSET={build.flash_offset} -Wl,--defsym=LD_MAX_SIZE={upload.maximum_size} -Wl,--defsym=LD_MAX_DATA_SIZE={upload.maximum_data_size} -Wl,--cref -Wl,--check-sections -Wl,--gc-sections -Wl,--entry=Reset_Handler -Wl,--unresolved-symbols=report-all -Wl,--warn-common
47
+ compiler.c.elf.flags=-mcpu={build.mcu} {build.fpu} {build.float-abi} -mthumb {compiler.optimization_flags } {build.flags.ldspecs} -Wl,--defsym=LD_FLASH_OFFSET={build.flash_offset} -Wl,--defsym=LD_MAX_SIZE={upload.maximum_size} -Wl,--defsym=LD_MAX_DATA_SIZE={upload.maximum_data_size} -Wl,--cref -Wl,--check-sections -Wl,--gc-sections -Wl,--entry=Reset_Handler -Wl,--unresolved-symbols=report-all -Wl,--warn-common
42
48
43
49
compiler.objcopy.eep.flags=-O ihex -j .eeprom --set-section-flags=.eeprom=alloc,load --no-change-warnings --change-section-lma .eeprom=0
44
50
0 commit comments