News for hackers. Stuff that matters.
Re:Java faster than C by ralph on Monday June 04, 2007 @10:08AM (#26259)
LLVM is outstanding, but little known. One example, a C program that uses a malloc-per-node linked list implementation might be compiled into an executable that uses an array, saving the space occupied by the pointers, and improving locality, because LLVM can analyse the whole program.

http://llvm.org/pubs/2005-06-12-MSP-PointerComp.html

http://llvm.org/pubs/2005-05-21-PLDI-PoolAlloc.html

Re:Java faster than C by jey on Monday June 04, 2007 @11:42AM (#26272)
Yeah, everyone please go contribute code to LLVM! LLVM is very pleasant to hack on with a genuinely clean design, unlike GCC, which is just a big nasty mess. Hacking on LLVM is fun, hacking on GCC is a chore.

"Reload is the GCC equivalent of Satan." http://gcc.gnu.org/wiki/reload

GCC's internal garbage collector. Yes, they really wrote a garbage collector for a C app, and dealing with it is just as pleasant as you'd imagine. http://gcc.gnu.org/wiki/Memory_management