Salut Jud McCranie !
Dans un message de Jud McCranie dat‚ du 25 Jul 97 12:40:00 il ‚tait dit:
JM> 3. It handles 32-bit integers as easily as 16-bit
JM> integers.May be easier. 16-bit TP handles 16-bit integer arithmetic
JM> a little faster than 8-bit arithmetic. As far as I can tell on
JM> my Pentium, though, arithmetic on 16- and 32-bit integers are the same
JM> speed. On a Pentium Pro, however, 32-bit may be fasterthan 16-bit.To
JM> sum up, there is no speed penalty for using 32-bit integersinstead of
JM> 16-bit integers with a 32-bit compiler.
Ypu forget to mention that the 32 bit integer need to be read or
writtent to/from memory. Doubling the width could double the memory
bandwidth needed. Also, note that reading or writing a 32 bit
quantity can be slowed down if the quantity is not well aligned in
memory. The processor must in some cases perform TWO memory accesses.
The speed penalty can be quite large !
Amiti‚s,
{-Francois Piette-}
francois.piette@ping.be
http://www.rtfm.be/fpiette
--- SvFido 1.32
---------------
* Origin: OverByte BBS (Embourg-Belgium) 32-4-3651395 VFC/V34+ (2:293/2202)
|