-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Dec 12, 2005, at 12:55 PM, Joshua Isom wrote:

Because the random benchmark is used for a few other tests, I figured I'd do it next. To do it the same way in pir is slow because it requires putting a variable into a global register and retrieving it 900,000 times. I have three versions written up. One that's split over two files, with one file including main, and the other including an init section and the actual needed sub. Another that's the same but just one file, but a tad uglier to me(7 extra lines just for error checking). And the final cream of the crop(i.e. about twice as fast as the pir), a pasm version, which takes advantage of the fact that the registers stay the same the whole time unless modified.

Could you supply a single-file version with everything in it, along with your "include" versions? Both *.pir versions require the "radom_lib.pir" file to compile and run.

I'll put the "single-file" version in the random benchmark, and add the "random_lib" file to a new parrot includes directory for common sources, as I do for other langages.

Is it sufficient to supply a path to the Parrot compiler for it to find necessary libraries?

Thanks,

- -Brent
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (Darwin)

iD8DBQFDnmLpzGDdrzfvUpURAmiDAJ0WpknhlfZAhp/B561yYboP3COYjgCeNAGW
6jm2IiVKGCy6EFy2tqUv4ZU=
=ywAv
-----END PGP SIGNATURE-----

Reply via email to