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
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.