Skip to content

Commit 683ba96

Browse files
IAR: Enable inline linker optimizations for develop/release profile
- add --inline option to linker flags Some routines are so small that they can fit in the space of the instruction that calls the routine. Use this option to make the linker replace the call of a routine with the body of the routine, where applicable.
1 parent 09c2450 commit 683ba96

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

tools/profiles/develop.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,6 @@
5555
"asm": [],
5656
"c": ["--vla", "--diag_suppress=Pe546"],
5757
"cxx": ["--guard_calls", "--no_static_destruction"],
58-
"ld": ["--skip_dynamic_initialization", "--threaded_lib"]
58+
"ld": ["--skip_dynamic_initialization", "--threaded_lib", "--inline"]
5959
}
6060
}

tools/profiles/release.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,6 @@
5353
"asm": [],
5454
"c": ["--vla", "--diag_suppress=Pe546"],
5555
"cxx": ["--guard_calls", "--no_static_destruction"],
56-
"ld": ["--skip_dynamic_initialization", "--threaded_lib"]
56+
"ld": ["--skip_dynamic_initialization", "--threaded_lib", "--inline"]
5757
}
5858
}

0 commit comments

Comments
 (0)