Supporting program translation by refactoring

Authors Michael Moser
Josef Pichler
Title Supporting program translation by refactoring
Type techreport
Number SCCH-TR-1268
Institution Software Competence Center Hagenberg
Month November
Year 2012
SCCH ID# 1268

Existing tools for automatic conversion of programs from one programming language to a different target language are incomplete and fail to provide a 100% automatic conversion. Among other reasons this insufficiency results from different language concepts and features in source and target language. To overcome this feature gap we refactor and normalize input sources (C#) and thereby replace language features unknown to the target language (C++) with basic but available language features. By preprocessing input sources we provide a tool independent approach which significantly reduces problems in subsequent C# to C++ translations.