Skip to content

Commit 261e071

Browse files
author
Janne Kiiskila
committed
Make ARMC5 develop profile also size optimized
Due to some historical reasons ARMC 5 compiler behaves very differently compared to others (GCC, IAR, ARM C 6) as it optimizes performance rather than size (like the others). All compilers should behave the same way with the same profile, thus ARM C 5 should also drive towards size (space).
1 parent fc645bc commit 261e071

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tools/profiles/develop.json

Lines changed: 2 additions & 2 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",

0 commit comments

Comments
 (0)