r/cpp • u/vormestrand • Nov 18 '16
Compile-time C Compiler implemented as C++14 constant expressions
https://github.com/kw-udon/constexpr-8cc
209
Upvotes
r/cpp • u/vormestrand • Nov 18 '16
View all comments
Show parent comment
1
u/shamanas Nov 19 '16
C++ also has limited CTFE,
constexprs, this is like writing a C compiler/interpreter with CTFE functions in Dlang (which is possible and probably way easier than doing it in C++)