Skip to content

Commit 5b8b2c9

Browse files
committed
Debug-profile: Use -Og level for GCC_ARM optimization
This brings massive ROM savings, and allows to use debug builds also with larger applications (for. ex. Mesh stack). Diff. for mbed-cloud-client-example with Wi-Sun stack. Total Static RAM memory (data + bss): 85120(-216) bytes Total Flash memory (text + data): 592668(-329296) bytes
1 parent f30703a commit 5b8b2c9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tools/profiles/debug.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"-fmessage-length=0", "-fno-exceptions",
66
"-ffunction-sections", "-fdata-sections", "-funsigned-char",
77
"-MMD", "-fno-delete-null-pointer-checks",
8-
"-fomit-frame-pointer", "-O0", "-g3", "-DMBED_DEBUG",
8+
"-fomit-frame-pointer", "-Og", "-g3", "-DMBED_DEBUG",
99
"-DMBED_TRAP_ERRORS_ENABLED=1"],
1010
"asm": ["-x", "assembler-with-cpp"],
1111
"c": ["-std=gnu11"],

0 commit comments

Comments
 (0)