Skip to content

Commit fb8ccea

Browse files
IAR: Enable additional linker optimizations for debug/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. - add --vfe option to linker flagsi Virtual Function Elimination (VFE) is a linker optimization that removes unneeded virtual functions and dynamic runtime type information
1 parent 09c2450 commit fb8ccea

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

tools/profiles/debug.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,6 @@
5858
"asm": [],
5959
"c": ["--vla", "--diag_suppress=Pe546"],
6060
"cxx": ["--guard_calls", "--no_static_destruction"],
61-
"ld": ["--skip_dynamic_initialization", "--threaded_lib"]
61+
"ld": ["--skip_dynamic_initialization", "--threaded_lib", "--vfe"]
6262
}
6363
}

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", "--vfe", "--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", "--vfe", "--inline"]
5757
}
5858
}

0 commit comments

Comments
 (0)