The short answer is no. Modern C ++ compilers generate their own code directly.
There is no reason why you cannot compile C ++ to C, there is simply no real reason to do this, so you add an extra step in the compilation process, which just as easily does not exist. However, there are several more options if for some reason you really need C code: the Comeau C ++ compiler emits C code in order to port your C ++ to platforms where the C ++ compiler may not exist (which very few these days), and Clang uses LLVM as a backend code generator that has C as one of many target languages. (edit: of these parameters, the first is deprecated and the second is no longer supported)
In any case, C is not like the code you entered: it is significantly less readable than machine code. The days that a method has accessed function calls with this , of course, are long gone - it is rather a "compilation" rather than a "conversion".
Leushenko
source share