threedslider wrote: Tue Aug 12, 2025 4:01 pmI make a simple for the loop to 1 000 000 000 and it is quite slow
Such results are highly contingent on the hardware its running on.
Texas Instruments TI-99/4A Home Computer: the first home computer with a 16bit processor, crammed into an 8bit architecture. Great hardware - Poor design - Wonderful BASIC engine. And it could talk too!Please visit my YouTube Channel
Hi MK-SOFT, I’d like to ask which CPU you have. Without a debugger, I get 1400ms, but with a debugger, it takes twice your time, 85000ms, PB 6.21 32/64
UPDATE: I repeated the test with C Backend and now this is the result:
threedslider wrote: Tue Aug 12, 2025 7:21 pm@NicTheQuick : How you did that ??? Say me your tips please !!
You have to enable the compiler optimizations in the compiler options. And of course for that you have to use the C backend and not the ASM backend. The ASM backend has no future anyway in my opinion.
Last edited by NicTheQuick on Wed Aug 13, 2025 10:25 am, edited 1 time in total.
The english grammar is freeware, you can use it freely - But it's not Open Source, i.e. you can not change it or publish it in altered way.
Windows 11 x64, PB 6.21 x64, AMD Ryzen 5 8500G OEM
92614 - ASM, with Debugger
1203 - ASM, without Debugger
32547 - C-Backend, with Debugger, without optimization
26440 - C-Backend, with Debugger, with optimization
1591 - C-Backend, without Debugger, without optimization
201 - C-Backend, without Debugger, with optimization
If I use For/Next, the execution time ist just 50% with Debugger on.
C-Backend is selected and Optimization is enabled.
31106 ms to 69440 ms
Without Debugger: both 0 ms