
8 Jun
2010
8 Jun
'10
3:16 p.m.
John Bytheway wrote: <snip>
The down side with this approach, of course, is the absolutely massive compile-time cost. Compiling the above example with g++ 4.4.3 takes over 6 minutes and over 1.3GiB of memory (and this is after I've put in effort to optimize it). The time I could live with, but the memory requirements are absurd. Any lexer of real-world complexity would be quite impossible to compile.
Could you try it with gcc 4.3? 4.4 has a known regression when it comes to compiling meta-c++ code. Just ask Christophe. Andy.