Did AC6 remove --feedback option from linker optimization?
I am getting an error finding replacement for this feature that removed unused section list from the final binary.
Hello,
This feedback feature is not supported by Arm Compiler 6.
The description that this option removed unused sections is not entirely correct - it created a "feedback file" which told the compiler to move such (potentially unused) code to their own section so that the linker could then remove it. The removal happens by default by the linker (use --noremove to disable).
Arm Compiler 6 does support link time optimization (-flto), which is used in conjunction with the linker (-lto).
https://developer.arm.com/documentation/100748/0621/Writing-Optimized-Code/Optimizing-across-modules-with-Link-Time-Optimization
I needed to read more on --feedback, and as you mentioned, linker does not do the lifting here. Thanks for mentioning that.
I am now migrating the feedback feature to lto.
Can you share a page on ARM documentation where to find a note that says that --feedback option is no longer supported by AC6. This will greatly help me link webpage for my own reference and documentation. Thank you so much!
Hello, I thought it would be in this table:
https://developer.arm.com/documentation/100068/0621/Migrating-from-armcc-to-armclang/Migration-of-compiler-command-line-options-from-Arm-Compiler-5-to-Arm-Compiler-for-Embedded-6
But I do not see it listed. I will get it added in a future version.