Custom PAWN precompiler
#1

Hi
I just thought about creating a custom precompiler for pawn that would make life a tiny bit easier for scripters. My original idea was to let the precompiler hash all strings that are marked with some sign (e.g. $"stringstring"). You would rename the default pawncc.exe to pawncc2.exe and install the custom precompiler as pawncc.exe. This would then replace all those strings with their hashed value in a temporary file and compile that file using pawncc2.exe.
This way you wouldnt need to use hash("stringstring") (for things like fast command text comparison), which would hash the string in runtime and so eats some time.
However this alone wouldnt pay out as an independent precompiler. I also thought about adding some optimization tweaks like chaning constant integers to constant floats in flaot calculations and all such small stuff.

There isnt a single line of code for this yet, I just wanted to ask if there would be anyone interested in this, or if someone has more ideas for this. So what do you think?
Reply


Messages In This Thread
Custom PAWN precompiler - by Mauzen - 10.11.2011, 19:00
Re: Custom PAWN precompiler - by FireCat - 10.11.2011, 19:04
Re: Custom PAWN precompiler - by SlashPT - 10.11.2011, 19:08
Re: Custom PAWN precompiler - by Slice - 10.11.2011, 19:15
Re: Custom PAWN precompiler - by iNorton - 10.11.2011, 19:20
Re: Custom PAWN precompiler - by SlashPT - 10.11.2011, 19:21
Re: Custom PAWN precompiler - by Mauzen - 10.11.2011, 19:40
Re: Custom PAWN precompiler - by Slice - 10.11.2011, 19:46
Re: Custom PAWN precompiler - by -CaRRoT - 10.11.2011, 19:58
Re: Custom PAWN precompiler - by Hiddos - 10.11.2011, 20:15

Forum Jump:


Users browsing this thread: 1 Guest(s)