title: Finding a multilanguage compiler or optimizer (c, c++, java)
body: <p>In a nutshell, I am searching for a method to edit an open source compiler or optimizer to change traditional lock implementations to software transnational memory transactions. I have three target languages, C, C++, and Java. One idea might be to use GCC as it now has stm support. The problem is, I can't think of a way to implement these changes to the java bytecode dumped by GCJ. The same problem arises for llvm.</p>
  
  <p>tldr; trying to find a compiler or optimizer like gcc or llvm that I can easily hack into chaning the source code or a intermediate representation of the source code.</p>