Linked by Thom Holwerda on Sat 29th Sep 2007 21:26 UTC, submitted by Chris Lattner
General Development The LLVM Project recently released a new version of their compiler, optimizer and code generators. LLVM includes a drop-in GCC-compatible C/C++ and ObjC compiler, mature optimization technology (including cross file/whole program optimization), and a highly optimizing code generator. For people who enjoy hacking on compilers and runtimes, LLVM provides libraries for implementing custom optimizers and code generators including JIT compiler support. This release is the first to provide beta GCC 4.2 compatibility as well as the new "clang" C/ObjC front-end, which provides capabilities to build source-to-source translators and many other tools.
Thread beginning with comment 275346
To view parent comment, click here.
To read all comments associated with this story, please click here.
RE: GCC
by dagw on Sun 30th Sep 2007 13:28 UTC in reply to "GCC"
dagw
Member since:
2005-07-06

It can also lead gcc users into bad habbits. I taught myself C using gcc, whenever I had a problem I'd search usenet and the web and often find solutions often posted by people who also used gcc. As such things where fine and I learned many things and started getting a good grasp of C (or so I thought).

Then, later, I ended up writing C code at a place that didn't use gcc, but a different and much stricter compiler. All of sudden many of the things that had been worked fine for me all along gave a bunch of strange compiler errors. So I ended up having to re-learn much about C which I thought I already knew.

Reply Parent Score: 3

RE[2]: GCC
by FooBarWidget on Mon 1st Oct 2007 12:18 in reply to "RE: GCC"
FooBarWidget Member since:
2005-11-11

So use '-Wall -Werror -c99 -pedantic'. You *can* make GCC stricter.

Reply Parent Score: 3

RE[3]: GCC
by dagw on Mon 1st Oct 2007 12:42 in reply to "RE[2]: GCC"
dagw Member since:
2005-07-06

I know now that I can, but it isn't the default and when I was learning C no tutorial or book told me to do so, or exlicitly mentioned that if I didn't do that I wouldn't be learning 'correct' C but a highly unstandard gnu C.

I'm not really blaming the gcc team as such though, since I actually prefer the non-standard gnu C because it makes many things easier. It's just that one has to keep in mind that it is non standard and perhaps things could be done to make that more clear.

Reply Parent Score: 2