File tree Expand file tree Collapse file tree 3 files changed +9
-8
lines changed Expand file tree Collapse file tree 3 files changed +9
-8
lines changed Original file line number Diff line number Diff line change 37
37
#define FORCE_INLINE __attribute__ ((always_inline)) inline
38
38
#define NO_INLINE __attribute__ ((noinline))
39
39
#define _UNUSED __attribute__ ((unused))
40
- #define __O0 __attribute__ ((optimize(" O0" )))
41
- #define __Os __attribute__ ((optimize(" Os" )))
42
- #define __O1 __attribute__ ((optimize(" O1" )))
43
- #define __O2 __attribute__ ((optimize(" O2" )))
44
- #define __O3 __attribute__ ((optimize(" O3" )))
40
+ #define __O0 __attribute__ ((optimize(" O0" ))) // No optimization and less debug info
41
+ #define __Og __attribute__ ((optimize(" Og" ))) // Optimize the debugging experience
42
+ #define __Os __attribute__ ((optimize(" Os" ))) // Optimize for size
43
+ #define __O1 __attribute__ ((optimize(" O1" ))) // Try to reduce size and cycles; nothing that takes a lot of time to compile
44
+ #define __O2 __attribute__ ((optimize(" O2" ))) // Optimize even more
45
+ #define __O3 __attribute__ ((optimize(" O3" ))) // Optimize yet more
45
46
46
47
#define IS_CONSTEXPR (...) __builtin_constant_p(__VA_ARGS__) // Only valid solution with C++14. Should use std::is_constant_evaluated() in C++20 instead
47
48
Original file line number Diff line number Diff line change 14
14
#
15
15
[common_avr8]
16
16
platform = atmelavr@~4.0.1
17
- build_flags = ${common.build_flags} -Wl,--relax
18
- build_src_flags = -std =gnu++1z
17
+ build_flags = ${common.build_flags} -std =gnu++1z - Wl,--relax
18
+ build_unflags = -std =gnu++11
19
19
board_build.f_cpu = 16000000L
20
20
build_src_filter = ${common.default_src_filter} +<src/HAL/AVR>
21
21
Original file line number Diff line number Diff line change @@ -326,7 +326,7 @@ extends = STM32F1_maple
326
326
board = marlin_malyanM200
327
327
build_flags = ${STM32F1_maple.build_flags}
328
328
-DMCU_STM32F103CB -D__STM32F1__ =1 -std =c++1y -DSERIAL_USB -ffunction-sections -fdata-sections
329
- -Wl,--gc-sections -DDEBUG_LEVEL =0 -D__MARLIN_FIRMWARE__
329
+ -Wl,--gc-sections -DDEBUG_LEVEL =0
330
330
lib_ignore = ${STM32F1_maple.lib_ignore}
331
331
SoftwareSerialM
332
332
You can’t perform that action at this time.
0 commit comments