gcc-4.5.0 Success Story with Freecell Solver

gcc-4.5.0 Success Story with Freecell Solver

Diego Iastrubni elcuco at kde.org
Tue Jun 15 23:06:04 IDT 2010


Shlomi:

<code>
svn co http://llvm.org/svn/llvm-project/llvm/trunk llvm
mkdir -p llvm/tools/clang
svn co http://llvm.org/svn/llvm-project/cfe/trunk llvm/tools/clang
mkdir llvm/cmake-build
cd llvm/cmake-build
ccmake ../
make
export CC=$PWD/bin/clang
export CXX=$PWD/bin/clang++
</code>

Now re-compile your library + test tools.

(PS, If you want to fully bootstrap clang instead of just using stage1 here, 
use this "ugly" shell script to get a "clang built with clang built clang",  
aka stage 3).

Please report how good/bad clang is for your case.



On יום שלישי 15 יוני 2010 14:27:22 Shlomi Fish wrote:
> On Monday 14 Jun 2010 12:20:03 Shlomi Fish wrote:
> > On Monday 14 Jun 2010 02:30:24 Amos Shapira wrote:
> > > There was an item on slashdot about LLVM project, have you tested it?
> > 
> > LLVM is http://en.wikipedia.org/wiki/Low_Level_Virtual_Machine . I've
> > learned about it from many places, including fellow developers on IRC.
> > I've tested it with Freecell Solver back before 18-Apr-2009, according to
> > http://fc-solve.berlios.de/docs/distro/NEWS.html . Reading from the
> > NEWS.html file:
> > 
> > [quote]
> > Added Makefile.llvm to build LLVM bitcodes from the Freecell Solver
> > sources. So far, they seem significantly slower than the native code
> > compiled using gcc-4.3.2.
> > [/quote]
> > 
> > So that's it. I've used it with a binary distribution of gcc-for-LLVM
> > instead of clang (which wasn't very mature back then). It's possible it
> > has improved since then in this regard.
> > 
> > In one comment I've read somewhere, it was claimed that Apple tends to
> > hype LLVM, because that's what they support, but the fact is that gcc is
> > much more mature and has many more years of development behind it.
> 
> OK, found this comment now:
> 
> http://lwn.net/Articles/391557/
> 
> Reading from it:
> 
> [quote]
> Actually they [= Apple] just refuse to touch anything GPLv3-related. And
> they often oversell LLVM because they compare it with years-old GNU stuff.
> 
> This is really sad because LLVM is great - it's just not as great as Apple
> PR guys claim...
> [/quote]
> 
> Regards,
> 
> 	Shlomi Fish
-------------- next part --------------
A non-text attachment was scrubbed...
Name: bootstrap-clang.sh
Type: application/x-shellscript
Size: 1069 bytes
Desc: not available
URL: <http://mailman.cs.huji.ac.il/pipermail/linux-il/attachments/20100615/b3f5fa9b/attachment.bin>


More information about the Linux-il mailing list