Keil Logo

ARMCLANG: Adding instrumentation calls for profiling functions

Information in this knowledgebase article applies to:

  • Arm Compiler v6.xx


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

Did this article provide the answer you needed?
Not Sure
  Arm logo
Important information

This site uses cookies to store information on your computer. By continuing to use our site, you consent to our cookies.

Change Settings

Privacy Policy Update

Arm’s Privacy Policy has been updated. By continuing to use our site, you consent to Arm’s Privacy Policy. Please review our Privacy Policy to learn more about our collection, use and transfers
of your data.