ARMCLANG: Adding instrumentation calls for profiling functions
Information in this knowledgebase article applies to:
ARM Compiler 5 (armcc) provides a compiler option called --gnu_instrument to add instrumentation calls for profiling entry and exit to functions.
This option causes an error with ARM compiler 6. Is there an equivalent Compiler option in ACv6.xx that can be used for profiling functions?
Profiling in this manner is not officially supported on Arm Compiler 6, and has been deprecated in Arm Compiler 5 from version 5.05 onwards.
There is a [COMMUNITY] option -finstrument-functions which allows you to add the same calls to __cyg_profile_func_enter() and __cyg_profile_func_exit().
Please note that [COMMUNITY] features are not officially supported Arm product features, and are available in the compiler tools as a result of work done by the wider Clang/LLVM community.
Last Reviewed: Wednesday, July 31, 2019
of your data.