Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to make your code faster
#4
LCD Wrote:Yes, FP is horribly slow and needs a boost. HiSoft Basic is much faster and the Tobos FP compiler es even much faster (the fastest FP Compiler for Speccy I know), so maybe Boriel will Rip the FP Runtimes from them?
<!-- m --><a class="postlink" href="http://www.worldofspectrum.org/infoseekid.cgi?id=0008249">http://www.worldofspectrum.org/infoseek ... id=0008249</a><!-- m -->
<!-- m --><a class="postlink" href="http://www.worldofspectrum.org/infoseekid.cgi?id=0008893">http://www.worldofspectrum.org/infoseek ... id=0008893</a><!-- m -->
I did not knew, it is THAT slow, because I rarely use FP arithmetic.

Actually code from Boriel's compiler is quite a lot faster than ZX basic. Around 2-3 times faster. That's about how much faster the hisoft basic compiler was for floating point, if I remember rightly. I haven't played with the Tobos one, but I hear good things about it. I used the hisoft compiler back in the 80's on a real spectrum in my bedroom as a kid. In fact, my one biggest project from back then was compiled in it.

The hisoft compiler DID make very fast and small code. It more or less had -O3 optimization built in Smile It only included the runtime routines that were actually called by your program, which I always thought was rather clever.
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)