??? 11/28/09 07:57 Read: times |
#171267 - Note on Integer Promotion and Keil Responding to: ???'s previous message |
Per Westermark said:
C has something called "integer promotion", where numbers smaller than an int gets upgraded to an int ... 16 bit large has been selected as the size of an int for the 8051 chips. The choice of 16 bits is Keil's - do not assume that all 8051 compilers will have made the same choice. Since the 8051 is an 8-bit processor, promoting things to 16-bits can have a serious performance impact (code size & speed). Therefore Keil ha an option to disable this language feature... |
Topic | Author | Date |
Unsigned Long Roll-over at 65535? | 01/01/70 00:00 | |
Typecast before the shift. | 01/01/70 00:00 | |
oh..my mistake..... | 01/01/70 00:00 | |
Integer promotion | 01/01/70 00:00 | |
Note on Integer Promotion and Keil | 01/01/70 00:00 | |
Not much of a choice, really | 01/01/70 00:00 | |
Probably | 01/01/70 00:00 | |
Design decisions | 01/01/70 00:00 | |
Oh yes they can!![]() | 01/01/70 00:00 |