C or C++ to write a compiler?
Posted
by
H.Josef
on Stack Overflow
See other posts from Stack Overflow
or by H.Josef
Published on 2011-01-07T01:27:15Z
Indexed on
2011/01/07
1:54 UTC
Read the original article
Hit count: 483
I want to write a compiler for a custom markup language, I want to get optimum performance and I also want to have a good scalable design.
Multi-paradigm programming language (C++) is more suitable to implement modern design patterns, but I think that will degrade performance a little bit (think of RTTI for example) which more or less might make C a better choice.
I wonder what is the best language (C, C++ or even objective C) if someone wants to create a modern compiler (in the sense of complying to modern software engineering principles as a software) that is fast, efficient, and well designed.
© Stack Overflow or respective owner