Page 1 of 1

Speed Optimizing - Build functions directly into ASM output

Posted: Thu Feb 28, 2008 12:23 am
by va!n
It would be very very nice, when with PB4.20 final ALL math functions will be directly insert into the ASM output to speed things up, instead calling PB math procedures!

The same would be nice for all Peek and Poke related functions!

What do you think about it and any chance to see this nice change for 4.20 final as small easter gift? ;) thx

Posted: Thu Feb 28, 2008 1:29 am
by DoubleDutch
+1 on the maths
+2 on the peek/poke!

Posted: Thu Feb 28, 2008 2:15 am
by Hroudtwolf
+1
But, it would be still much better, when opensource asm-macrofiles would be used by the compiler.
It could be quite simple to code optimization themselves. The programmer just would have to adapt the macrofiles.

Best regards

Wolf

Posted: Thu Feb 28, 2008 12:29 pm
by Tranquil
+1 But only if Debugger is disabled, otherwise there are no debugger callings anymore on math commands?!

Don't know if the compiler is able to catch these bugs without a calling procedure.

Posted: Thu Feb 28, 2008 1:16 pm
by va!n
@Tranquil:
I think it should be no problem to have a normal and a debug version of a macro like:

Macro Int()
EndMacro

Macro_Int_Debug()
EndMacro

If you disable the Debugger, PB will automatical use the Int() macro, else the Int_Debug() will be used automatical.