Search for a multilingual compiler or optimizer (c, C ++, java)

In a nutshell, I'm looking for a method for editing an open source compiler or optimizer to modify traditional lock implementations for transactional transactions in transactions. I have three target languages: C, C ++ and Java. One idea might be to use GCC as it now supports stm. The problem is that I can't think of a way to implement these changes in java bytecode dumped by GCJ. The same problem occurs with llvm.

TL; DR; trying to find a compiler or optimizer such as gcc or llvm, which I can easily crack in source code encoding or intermediate representation of source code.

+3
source share
1 answer

If you want a tool that can analyze and convert C, C ++ and Java, you can consider our DMS Software Reengineering Toolkit .

DMS analyzes the source code for the language, builds AST, allows you to apply procedural or template rewrites for these ACTs, and can restore the actual source code for modified programs. Source-to-source transformations are much easier to write than procedural ones, because you need to know much less about the structure of the tree for navigation / modification.

DMS Java, C, C99 ++ 11 , DMS , . C Java DMS , , . ++ DMS .

"" , , , .

+1

All Articles