??? 11/28/09 11:35 Read: times |
#171271 - Design decisions Responding to: ???'s previous message |
They can't select 8-bit int. Must be >= 16 bits. Trying to match the register size is only an option for bigger processors, i.e. a 32-bit processor should preferably use a 32-bit int and not settle for the 16-bit minimum even if the instruction set would allow same-speed operations on both sizes.
And selecting a too large int size would kill the manufacturer in any benchmarks. It isn't hard to realize why Keil decided to support deactivation of integer promotion. The 8051 design spent a lot of energy on efficient bit operations, making it one of the worst ever 8-bit processors for handling 16-bit and larger integers. |
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 |