I'd like to inquire whether the compiler and linker options mentioned below induce code inlining:
The "-flto" option in Arm C Compiler for Embedded 6.The "--lto" and "--no-inline" options in Arm Linker 6.
I'm curious about the presence of the linker-related option "-flto" within compiler options. Specifically, I'd like to know whether it's intended for the compiler to perform linking, or if it's aimed at generating binaries that can be linked later.
Any sources compiled with -flto MUST be linked with the --lto linker option.
https://developer.arm.com/documentation/100748/0622/Writing-Optimized-Code/Optimizing-across-modules-with-Link-Time-Optimization
The key reason for using this feature would be to allow cross-source optimization, which likely breaches the standard 'ground rules' of a Dhrystone run, which requires separate compilation of the sources.