Thread Rating:
  • 1 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Compiler Speed Trials
#20
Cool! I'll look into trying to break that. Shaving most of a second off a 2 second benchmark is still impressive.

Curiously, I can see the odd optimization in Hisoft routines too:

Code:
LD DE, $0005      
   AND A              
   SBC HL, DE         ; HL = k / 2 * 3 + 4 - 5

Is probably better done as:
Code:
LD DE, -5
ADD HL,DE

Which doesn't need the AND A so shaves one byte and 4 T states off every fixed 16 bit subtract.
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 6 Guest(s)