Skip to content

Commit 2dc562f

Browse files
authored
Merge pull request #10813 from JanneKiiskila/arm-develop-size
Make ARMC5 and IAR develop profile also size optimized
2 parents c709955 + 7bfe0be commit 2dc562f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tools/profiles/develop.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
"ld": ["--show_full_path", "--legacyalign", "--keep=os_cb_sections"]
2828
},
2929
"ARM": {
30-
"common": ["-c", "--gnu", "-Otime", "--split_sections",
30+
"common": ["-c", "--gnu", "-Ospace", "--split_sections",
3131
"--apcs=interwork", "--brief_diagnostics", "--restrict",
3232
"--multibyte_chars", "-O3", "-DMBED_TRAP_ERRORS_ENABLED=1"],
3333
"asm": [],
@@ -36,7 +36,7 @@
3636
"ld": ["--show_full_path", "--keep=os_cb_sections"]
3737
},
3838
"uARM": {
39-
"common": ["-c", "--gnu", "-Otime", "--split_sections",
39+
"common": ["-c", "--gnu", "-Ospace", "--split_sections",
4040
"--apcs=interwork", "--brief_diagnostics", "--restrict",
4141
"--multibyte_chars", "-O3", "-D__MICROLIB",
4242
"--library_type=microlib", "-DMBED_RTOS_SINGLE_THREAD",
@@ -49,7 +49,7 @@
4949
"IAR": {
5050
"common": [
5151
"--no_wrap_diagnostics", "-e",
52-
"--diag_suppress=Pa050,Pa084,Pa093,Pa082", "-Oh", "--enable_restrict",
52+
"--diag_suppress=Pa050,Pa084,Pa093,Pa082", "-Ohz", "--enable_restrict",
5353
"-DMBED_TRAP_ERRORS_ENABLED=1"],
5454
"asm": [],
5555
"c": ["--vla", "--diag_suppress=Pe546"],

0 commit comments

Comments
 (0)