From: Albert G. <Dr....@t-...> - 2008-07-07 22:10:50
|
Hi Rooslan, welcome to the list! Rooslan S. Khayrov wrote: > Here is a patch (created by mostly mechanical substitution) to compile > Pure with LLVM trunk. I guess it should work with 2.3 as well. It passes > all tests on my Linux x86 box. Thanks a bunch, that's heaven-sent! :) Will try it immediately. > I've never tried Pure with 2.2, so can't > really compare these performance wise. Compiling any of supplied library > modules or sources in examples/ folder takes less than 1 sec on a not so > modern hardware (single core AMD 3200+). Did you run these with -i? Otherwise the interpreter is not really compiling anything (it's all done lazily). To actually force the Pure interpreter to generate the IR for a module when you run it in batch mode and you're not actually computing anything, you can use a command like the following: pure -i set.pure </dev/null This will force it to think it's in interactive mode, in which case it compiles all pending definitions before it enters the read-eval-print loop. Cheers, Albert -- Dr. Albert Gr"af Dept. of Music-Informatics, University of Mainz, Germany Email: Dr....@t-..., ag...@mu... WWW: http://www.musikinformatik.uni-mainz.de/ag |