声明:
1、本翻译仅供个人学习使用,本人没有提供技术支持的义务,也不承担由此引发的任何后果。
2、请勿用于商业用途。
3、英文来自:http://www.keil.com/support/man/docs/c51/。
4、欢迎大家共同与我交流探讨(290207203@qq.com)。
INTPROMOTE Compiler Directive
Abbreviation | IP |
Arguments | None. |
Default | INTPROMOTE |
µVision | Options — C51 — Enable ANSI integer promotion rules. |
Description | The INTPROMOTE directive enables ANSI integer promotion rules. Expressions used in if statements are promoted from smaller types to integer expressions before comparison. This allows Microsoft C and Borland C programs to be ported to the C51 Compiler with fewer modifications. Since the 8051 is an 8-bit processor use of the INTPROMOTE directive may generate less efficient code in some applications. |