rose-compiler / rose

Developed at Lawrence Livermore National Laboratory (LLNL), ROSE is an open source compiler infrastructure to build source-to-source program transformation and analysis tools for large-scale C (C89 and C98), C++ (C++98 and C++11), UPC, Fortran (77/95/2003), OpenMP, Java, Python and PHP applications.
http://rosecompiler.org
Other
600 stars 132 forks source link

Can ROSE convert CPP code to C #190

Closed abiabilesh closed 2 years ago

abiabilesh commented 2 years ago

Discussed in https://github.com/rose-compiler/rose/discussions/189

Originally posted by **abiabilesh** April 8, 2022 Hey All, I know that this may sound as a lame question to ask, considering the fact that ROSE has enough documentation. I'll put it anyway as I could not find any clue whatsoever due to my poor browsing skill. **Can ROSE or any of its tool may be leveraged for source to source conversion from C++ to C ?** If so, would you kindly point me to the right documentation of ROSE explaining how to use it?
tristanvdb commented 2 years ago

Hi,

We have never developed such translation tool. However, it is definitely possible to use ROSE to create such a tool.

Thanks, -Tristan