NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.
All the Perl that's Practical to Extract and Report
Stories, comments, journals, and other submissions on use Perl; are Copyright 1998-2006, their respective owners.
perlbench vs the world (Score:2)
I deliberately tried with the non-benchmark of running the core regression tests, because I was curious about process startup as well as steady-state costs, and found something similar - current
clangis slower than currentgcc. I tried to installgcc-llvmfrom macports, in the hope that that would be a fairer comparison, but the port failed to compile, so I've not (yet) been able to see whether thegccoptimiser via LLVM is better than thangccwithout the LLVM "overhead", and hence isolate the effects ofRe: (Score:2)
I also wonder about gcc's new -fcreate-profile/-fuse-profile options. Might be worth a try... But ultimately I think a project like using LLVM has more legs than that one-off optimisation.
what is linking? (Score:1)
when I used llvm-gcc I had similar results using non llvm linkage.
Make sure clang emits llvm bytecode so that link time optimizations (which are the most effective) can be run.
For me results when from roughly 80-90% of gcc to about 110% on average IIRC.
See my earlier post on llvm, from around june 2008 I think.
sa-compile (Score:1)
What did you build Perl with? (Score:2)
--
xoa
Re: (Score:2)
Hmm, possibly... But I went through it interactively... I just edited the config.sh for gcc (with -Os optimisation) and replaced all instances of "cc" with "clang" and it "just worked".