Speed Optimizing - Build functions directly into ASM output

Got an idea for enhancing PureBasic? New command(s) you'd like to see?
va!n
Addict
Addict
Posts: 1104
Joined: Wed Apr 20, 2005 12:48 pm

Speed Optimizing - Build functions directly into ASM output

Post 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
va!n aka Thorsten

Intel i7-980X Extreme Edition, 12 GB DDR3, Radeon 5870 2GB, Windows7 x64,
User avatar
DoubleDutch
Addict
Addict
Posts: 3219
Joined: Thu Aug 07, 2003 7:01 pm
Location: United Kingdom
Contact:

Post by DoubleDutch »

+1 on the maths
+2 on the peek/poke!
https://deluxepixel.com <- My Business website
https://reportcomplete.com <- School end of term reports system
User avatar
Hroudtwolf
Addict
Addict
Posts: 803
Joined: Sat Feb 12, 2005 3:35 am
Location: Germany(Hessen)
Contact:

Post 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
Tranquil
Addict
Addict
Posts: 950
Joined: Mon Apr 28, 2003 2:22 pm
Location: Europe

Post 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.
Tranquil
va!n
Addict
Addict
Posts: 1104
Joined: Wed Apr 20, 2005 12:48 pm

Post 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.
va!n aka Thorsten

Intel i7-980X Extreme Edition, 12 GB DDR3, Radeon 5870 2GB, Windows7 x64,
Post Reply