![]() |
|
"be consistent" | |
PerlMonks |
new DLL compile code inside script languagesby orange (Beadle) |
on Jul 04, 2009 at 13:35 UTC ( #777231=perlquestion: print w/replies, xml ) | Need Help?? |
orange has asked for the wisdom of the Perl Monks concerning the following question:
Hi i have found a dll special for script languages, the author said: O2H is a Just-In-Time compiler assembler, deployed in a single DLL that takes source code strings and returns executable binary. the author said that he managed it to be a general dll. i am trying to use it in perl, you can download it from here: http://community.thinbasic.com/index.php?topic=2517.0 just download the file : thinBasic_Oxygen.zip to give you some idea first: in perl to sum the numbers from 1 to 100000000 (one hundred million) such as: it takes about 65 seconds to give the result 5.00000005e+015 = 5000000050000000 while in vb6 calling this dll it is less than 2 seconds to give the result 5000000050000000 i have tried it with visual basic 6 as follows: the full vb6 source with the dll here: http://sites.google.com/site/zak31415/Home/vb6_oxygen2.rar first: i have declared its functions in a vb6 Module: second: i have write in a form the following code: just compile the code first and run the compiled code now in perl: i have great difficulties with api to execute the function o2basic it gives an error, try it please. ps.. the instruction mov eax,a are not used here but it is to make it possible to pass the result to vb6 variable such as v = o2exec thanks
Back to
Seekers of Perl Wisdom
|
|