|
|||||||||||
|
Technical Support Support Resources
Product Information |
ARMCC: Information About Optimization Level During RuntimeInformation in this knowledgebase article applies to:
QUESTIONDuring the runtime, I would like to see the information about the optimization level of my program. Is there any compiler directive or pragma options to check such an information? ANSWERIt is possible to get the information about the optimization levels during the run and compile time. To know the optimization level at runtime, use the predefined macro __OPTIMISE_LEVEL in your source code. This predefined macro can be assigned to a constant variable and corresponding value of optimization can be extracted from this variable during the run time, such as: unsinged int i =__OPTIMISE_LEVEL; To know the optimization level at compile-time, check the compiler control string. MORE INFORMATION
SEE ALSOLast Reviewed: Monday, February 15, 2021 | ||||||||||
|
|||||||||||
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.