cpp to c?
(As a need to support many different toolchains quickly and may not have a c++ support in the given toolchain)
I think none, just because of STL, you can find some analogues of stl for C and rewrite it
I intended to work without the stdlib
So maybe there is a solution for that more "simple" case
you want "convert" cpp code to C? can you provide example?
Yes, so I would have classes and RAII concepts I'm not sure that a code example is really needed here
ican suggest you https://github.com/Snaipe/libcsptr with classes you can search some alternatives, but I recommend you use another approach (or try zig/rust xD)
I'm looking for something more like this https://github.com/JuliaHubOSS/llvm-cbe
Unlike other suggestions I understand what you want, but I haven't seen anything that actually does that (other than things like "<some IR> to C")
hmm, what if we can just translate Cpp => IR => C?
Well yeah, that's what the project he already linked to does
Обсуждают сегодня