unsigned char var_name;
pyrometal wrote:not quite right DST... Instead of me explaining, go here!
http://en.wikipedia.org/wiki/Primitive_data_type
It is important for any programmer to know and understand the primitive data types.
Also, you should know that by making all your variables bytes, you're reducing your memory usage to 1/4 and not 1/2. Finally, saving memory space in this case will not change the performance considerably as the modern CPUs should use the about the same number of clock cycles to accomplish the same task regardless of the type (except if you are attempting to fetch variables larger than the size of your CPUs data bus).
to use unsigned bytes, declare them like this:
- Code: Select all
unsigned char var_name;
I'm done rambling, ttyl all!
--pyro
Users browsing this forum: No registered users and 1 guest