On Wednesday 02 November 2005 1:38 am, Dmitry wrote:
> cause of sign extension.
> Every operation with signed variables will require a sign extension which
> takes some time therefore slower.
> ~d

  Right, but tip #7 says:

7. Use int instead of char or unsigned char if you want an 8 bit integer.

  So is it really better to use a (signed) int instead of an unsigned char?  

  Also, another question:

5. Avoid using global variables of small size - it is a waste of RAM.

  Would I be correct in assuming that "small size" means a byte?  And that the 
waste would occur if a global byte variable was stored at an even address, 
and the next global variable was a word variable, and had to be stored at the 
next even address, so we'd lose a byte?

Kevin

Reply via email to