Mail Archives: djgpp/1999/07/16/14:32:03
Rob Kramer wrote:
>
> Hi all,
>
> One of my applications (involving a GIF-decoder) I recently tried on a
> 386 SX machine. The decoder is terribly slow in that case. The original
> pre-DJGPP obsolete 16-bit version of the application is way faster. (I'm
> not sure whether the 32-bit version is faster than the 16-bit version on
> a 386 DX)
>
> The 16-bit version uses shorts as working variables in the decoder, the
> 32-bit version uses ints. Could the big difference between running on a
> SX and a DX be caused by the fact that 32-bit transfers are not a nice
> thing on a SX databus?
>
> Then would it help if I change back to shorts, or will this harm the
> performance of the decoder on 32 bits databus machines. Note that the
> decoder doesn't actually need ints, but I thought ints were friendlier to
> a Pentium architecture. That's what it normally runs on, but I have to
> support 386SX too :(
Do you use any floating point math? The SX would have to emulate, which
wuold be considerably slower.
-Mike
- Raw text -