3 ms·
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 tha
by ralph 19y ago
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-06-12-MSP-PointerComp.html
http://llvm.org/pubs/2005-05-21-PLDI-PoolAlloc.html http://llvm.org/pubs/2005-05-21-PLDI-PoolAlloc.html
- jey 19y agoYeah, 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 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 http://gcc.gnu.org/wiki/Memory_management