Skip to content

Commit 3ede2a9

Browse files
authored
Merge pull request #11126 from teetak01/optimize-debug-profile
Optimize debug profile flags for size
2 parents 797e58a + 5b8b2c9 commit 3ede2a9

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

tools/profiles/debug.json

Lines changed: 4 additions & 4 deletions
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"],
@@ -30,7 +30,7 @@
3030
"--any_contingency", "--keep=os_cb_sections"]
3131
},
3232
"ARM": {
33-
"common": ["-c", "--gnu", "-Otime", "--split_sections",
33+
"common": ["-c", "--gnu", "-Ospace", "--split_sections",
3434
"--apcs=interwork", "--brief_diagnostics", "--restrict",
3535
"--multibyte_chars", "-O0", "-g", "-DMBED_DEBUG",
3636
"-DMBED_TRAP_ERRORS_ENABLED=1"],
@@ -40,7 +40,7 @@
4040
"ld": ["--show_full_path", "--any_contingency", "--keep=os_cb_sections"]
4141
},
4242
"uARM": {
43-
"common": ["-c", "--gnu", "-Otime", "--split_sections",
43+
"common": ["-c", "--gnu", "-Ospace", "--split_sections",
4444
"--apcs=interwork", "--brief_diagnostics", "--restrict",
4545
"--multibyte_chars", "-O0", "-D__MICROLIB", "-g",
4646
"--library_type=microlib", "-DMBED_RTOS_SINGLE_THREAD", "-DMBED_DEBUG",
@@ -53,7 +53,7 @@
5353
"IAR": {
5454
"common": [
5555
"--no_wrap_diagnostics", "-e",
56-
"--diag_suppress=Pa050,Pa084,Pa093,Pa082,Pe540", "-On", "-r", "-DMBED_DEBUG",
56+
"--diag_suppress=Pa050,Pa084,Pa093,Pa082,Pe540", "-Ol", "-r", "-DMBED_DEBUG",
5757
"-DMBED_TRAP_ERRORS_ENABLED=1", "--enable_restrict"],
5858
"asm": [],
5959
"c": ["--vla", "--diag_suppress=Pe546"],

0 commit comments

Comments
 (0)