3 ms·
Most static language compilers include an interpreter for constant expressions at a minimum, because otherwise statically allocating things like arrays is a bit
by barrkel 12y ago
Most static language compilers include an interpreter for constant expressions at a minimum, because otherwise statically allocating things like arrays is a bit tricky. Handily, this interpreter can be reused for constant folding.
C++ compilers nowadays necessarily include a Turing complete interpreter.
- TazeTSchnitzel 12y agoC has one in the preprocessor, to do platform-independent conditionals.