Steve Rogers mentioned this to Jud McCranie:
SR> Makes me wonder, should I use 32-bit vars for counters, etc. where I
SR> am now using words?
You should use integers, which are always sized for best performance.
SR> Is there any downside to using 16-bit vars in
SR> 32-bit programs?
They take less room (thus are good for record storage). The CPU has to split
a 32 bit value to operate on them, so they are slightly slower to operate on.
...Gary
--- GoldED 2.41
---------------
* Origin: The Flying Circus BBS, Farmington Hills, MI, USA. (1:2410/905)
|