The Speed of Basic4ppc

proevol

New Member
I've been writing a program about chess. But I found it difficult to continue cause the program on my PPC(624Mhz) is too slow.

here is an example

for i=1 to 20000 step 1
next i

this simple program will use about 1 sec!!

 

Ariel_Z

Active Member
Licensed User
If you run Basic4ppc program without compiling it, then it is much slower than if you compile it (optimized compile). Go to File>Compile, make sure "Optimized compilation" is checked, and compile (either device or desktop - for desktop choose "Windows EXE"). This will run in a fraction of the time. The reason is this: before compilation, Basic4ppc program is interpreted - each line is read and then executed. This takes a long time but allows many debug-time features. Compiled programs are translated into Microsoft .net intermediate language (MSIL), and Windows in turn translates them to assembly. This makes them very fast.

Hope this helps.
 

proevol

New Member
thanks very much
but i have compiled on my pc and moved the exe(forcing qvga mode) into my vga screen ppc. and i have ticked on that Optimized compilation
i wonder if the focint qvga mode program running on a vga ppc will make the program running slow

and may you do a little test that make a "for i=1 to 100000 step 1 next i" program in you ppc and run it to see how much time exactly it takes?
thanks a lot!!

-----------------

just then i tried to used the simply ppc compile mode (not qvga forced), and i found the speed did not change. :-(

maybe there is sth wrong with my ppc??
 
Last edited:

agraham

Expert
Licensed User
Longtime User
just then i tried to used the simply ppc compile mode (not qvga forced), and i found the speed did not change.
It won't, the speed difference is between optimised compiled or not. That is with File-> Compile -> Optimized Compilation ticked or not. Out of interest how are you managing to compile as you don't show on the forum as a registered user and compilation is not available in the Basic4ppc demo?
maybe there is sth wrong with my ppc??
I doubt it, you are just expecting too much. PPCs are not very powerful compared to desktops.
 
Cookies are required to use this site. You must accept them to continue using the site. Learn more…