ROSE compiler framework
From Seo Wiki - Search Engine Optimization and Programming Languages
The ROSE compiler framework, developed at Lawrence Livermore National Laboratory, is an open source compiler infrastructure to generate source-to-source analyzers and translators for multiple source languages including C, C++, and Fortran. It also supports OpenMP, UPC and certain binary files. Unlike most other research compilers, ROSE is aimed to enable non-experts to leverage compiler technologies to build their own custom software analyzers and optimizers.
ROSE consists of multiple front-ends, a midend operating on its internal intermediate representation (IR), and backends regenerating (unparse) source code from IR. Optionally, vendor compilers can be used to compile the unparsed source code into final executables.
ROSE uses the Edison Design Group's C++ front-end to parse C and C++ applications. Fortran support, including F2003 and earlier F77/90/95 versions, is based on the Open Fortran Parser (OFP) developed at Los Alamos National Laboratory.
The ROSE IR consists of an abstract syntax tree, symbol tables, control flow graph, etc. It is an object-oriented IR with several levels of interfaces for quickly building source-to-source translators. All information from the input source code is carefully preserved in the ROSE IR, including C preprocessor control structure, source comments, source position information, and C++ template information (e.g., template arguments).
ROSE is released under a BSD-style license. It targets Linux and Mac OS X on both IA-32 and x86-64 platforms. Its EDG parts are proprietary and distributed in binary form. Source files of the EDG parts can be obtained if users have a commercial or research license from EDG.
The ROSE compiler infrastructure has received the 2009 R&D 100 Award. The R&D 100 Awards are presented annually by R&D Magazine to recognize the 100 most significant proven research and development advances introduced over the past year. An independent expert panel selects the winners.
- http://www.rosecompiler.org/ Official site
- https://outreach.scidac.gov/projects/rose/ Development site