Clang vs. GCC memory use graphs
lists.cs.uiuc.edu
lists.cs.uiuc.edu
Hopefully they'll have some more announcements at WWDC
Different focus, perhaps? Anyway, what I wrote was purely anecdotal, so if anyone posts data it will be much better.
In particular, clang tries to use the least amount of memory possible for better caching effects, which is why it compiles much faster.
For the compiled program, it's also comparable in speed (and sometimes faster) in most benchmarks. That's pretty impressive given that GCC has been around much longer and has more developers.
The front end of GCC, on the other hand, does not have goals of being useful in fast, interactive situations. It assumes while parsing that the end goal is program compilation. It therefore builds a larger data structure that assumes it's going all the way.
So, in this case, it's not just your basic time/space tradeoff. Clang is actually doing less work.
So I believe these measurements are just about parsing, and clang wins because parsing-without-compiling is a high-priority use case for clang.