Mail Archives: djgpp/1996/11/27/18:37:34
Glen Miner (gminer AT ca DOT newbridge DOT com) wrote:
: > you might be better off just using ints (32 bits) instead of 8, or
: > worse, 16 bit quantities.
: What makes you say that? I can't see how this would make it faster...
: more cache misses, and an extra shift to index non-byte sized quantities.
: Not to mention the fact that there are more byte sized registers.
: > most probably changing things from 32 bit quantities to 16 bit
: > quantities will make your program run slower because of the extra
: > indexing required.
: Extra indexing?! You'll have to justify that statement, cause' I'm not
: buying it.
It is true that mostly 32-bit ints will be faster than 16-bit ints, because
of the instruction opcode. Instructions that work with 16-bit data have a
opcode prefix, so code will be a little slower. Well, it shouldn't be that
way also for (i)div or i(mul), but I'm not sure about it...
<E-mail: sime AT fly DOT cc DOT fer DOT hr >
<2nd E-mail: simun DOT mikecin AT fer DOT hr >
<URL: http://fly.cc.fer.hr/~sime>
- Raw text -