|
|||||||||||
|
Technical Support Support Resources
Product Information |
C51: Optimized C with Inline AssemblerInformation in this article applies to:
QUESTIONI'm using inline assembly in my C program, and the code won't optimize, no matter what I do. What's going on? ANSWERIn order to use inline assembly, you must include #pragma src in the C source file. This overrides the optimizer and generates unoptimized assembly instructions from your C code. A better way to use assembly in conjunction with C may be found by referring to C51: Calling Assembly Routines from C in the database. 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.