On Monday, 21 November 2016 at 16:37:41 UTC, Johan Engelen wrote:
I think there is some confusion: a D-CTFE C-compiler is exactly
what my OP was about ;)
Not really true, my OP was about adding a backend to a compiler
that compiles C to another language. The new backend should
output D
to compile to other languages, just use the above
with ldc --output-ll or --output-bc, then get an llvm
decompiler to get that to your target language :)
A C compiler using ctfe, now that would take some more work.
I think there is some confusion: a D-CTFE C-compiler is exactly
what my OP
On Monday, 21 November 2016 at 10:41:27 UTC, Johan Engelen wrote:
In LLVMweekly [1], I read the following:
"You may be be interested, amazed, and/or horrified to learn of
constexpr-8cc [2]. It provides a compile-time C compiler
implemented as C++14 constant expressions."
The constexpr
On Monday, 21 November 2016 at 10:41:27 UTC, Johan Engelen wrote:
In LLVMweekly [1], I read the following:
"You may be be interested, amazed, and/or horrified to learn of
constexpr-8cc [2]. It provides a compile-time C compiler
implemented as C++14 constant expressions."
The constexpr
In LLVMweekly [1], I read the following:
"You may be be interested, amazed, and/or horrified to learn of
constexpr-8cc [2]. It provides a compile-time C compiler
implemented as C++14 constant expressions."
The constexpr compiler is generated using ELVM [3], a C compiler
that targets a bunch