|
|||||||||||
|
Technical Support Support Resources
Product Information |
C51: Suppressing Calls to Function From Common Code BlocksInformation in this article applies to:
QUESTIONI'm using the highest compiler optimization levels that generates subroutines with common code blocks. However, my application requires that I leave specific function calls outside of common code blocks. How can I prevent a specific function call to be placed in a common code block? ANSWERYou can apply the volatile attribute to a function to ensure that it is not called from common subroutine sequences. When the optimizer detects a volatile function, it avoids packing calls to that function into common code blocks. For example:
packs calls to reg_func but does not pack calls to vol_func.
MORE INFORMATION
SEE ALSO
Last Reviewed: Thursday, February 25, 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.