Current location - Plastic Surgery and Aesthetics Network - Plastic surgery and beauty - The specific difference between uchar and uint (in C51)
The specific difference between uchar and uint (in C51)

uchar is 8 bits and occupies one register

uint is 16 bits and occupies 2 registers

So there are more INT type codes when compiling

p>

The default compilation of KEIL in XDATA is CHAR type, which also occupies 2 registers, so the difference is not much

In the project, we must consider the register and runtime efficiency, so save what you can. Here