Re:C++ Grandmaster Certification
by wglb on Friday February 01, 2013 @12:00AM
(#5149293)
I beg to disagree. For something as complex as C++, writing the preprocessor, the parser, and the code generator is very much beyond a man year.
[ Parent
| on HN ]
I wasn't saying that it would take a year or even a few years. I was merely saying that most of the effort in gcc/msvc was related to things like optimizing and maintaining multiple architectures. A simple compliant C compiler that only targets x86_64 and performs no optimization, for example, would be much smaller than GCC.
Unclear to me if that is really the case.
Re:C++ Grandmaster Certification
by JoachimSchipper on Friday February 01, 2013 @09:24AM
(#5150797)
Consider tcc, which is indeed much simpler than gcc.
Ah, yes. I was still thinking C++ as the discussion seemed to slip over to simple C.
there are parser generators .. you dont have to build one from scratch
As noted elsewhere, these usually make the hard part harder.
The other part of the issue is building the internal representation so that halfway decent code can be generated, not even thinking about optimization.
And, like the syntax and grammar of the language, the semantics of C++ are quite complex.