|
|||||||||||
Technical Support Support Resources
Product Information |
C51: Integer PromotionInformation in this article applies to:
SYMPTOMSI have written the following program that performs operations using unsigned chars.
The code that's generated performs these operations in integers (16 bits).
What causes that? CAUSEThis is caused by the ANSI integer promotion rules that the Keil C51 compiler observes. These rules are defined by the ANSI C Specification. RESOLUTIONANSI integer promotion rules are used by default. However, you may disable them by unselecting this option in the C51 compiler options (in µVision) or from the command line with the NOINTPROMOTE directive. The resulting output is what you will get when you do that.
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.