Wednesday, March 19, 2008

Writing a Compiler - Links

The LLVM Compiler Infrastructure - http://llvm.org/Features.html

How Difficult is it to Write a Compiler? - http://tratt.net/laurie/tech_articles/articles/how_difficult_is_it_to_write_a_compiler

Lex and YACC primer/HOWTO - http://www.ds9a.nl/lex-yacc/cvs/output/lexyacc.html

Compiler Books - http://www.amazon.com/exec/obidos/tg/detail/-/0201100886/002-8651299-9372828?v=glance

Flex (The Fast Lexical Analyzer) - http://www.gnu.org/software/flex/

Bison - GNU parser generator - http://www.gnu.org/software/bison/bison.html

Let's Build a Compiler, by Jack Crenshaw - http://compilers.iecc.com/crenshaw/

http://www.google.com/search?ie=UTF-8&oe=UTF-8&sourceid=navclient&gfns=1&q=amazon+Brinch+Hansens

Grammar (formal language theory) - http://en.wikipedia.org/wiki/Formal_grammar

An Incremental Approach to Compiler Construction - http://scheme2006.cs.uchicago.edu/#anincrementalapproachtocompilerconstruction (pdf link on the right side)

Thursday, March 13, 2008

Compiling clamav-0.92.1 under Ubuntu 6.06 (Dapper)

If you get this error:

checking for gcc bug PR28045... configure: error: your compiler has gcc PR28045 bug, use a different compiler, see http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28045
add --disable-gcc-vcheck CFLAGS="-O0" to ./configure, like this:

./configure --prefix=/usr/local/clamav-0.92.1/ --disable-gcc-vcheck CFLAGS="-O0"