rasmussn / rose-develop

The latest development version of rose. It may not pass all regression tests.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ROSE Compiler

ROSE is an open source compiler infrastructure to build source-to-source program transformation and analysis tools for large-scale Fortran 77/95/2003, C, C++, OpenMP, and UPC applications. The intended users of ROSE could be either experienced compiler researchers or library and tool developers who may have minimal compiler experience. ROSE is particularly well suited for building custom tools for static analysis, program optimization, arbitrary program transformation, domain-specific optimizations, complex loop optimizations, performance analysis, and cyber-security.

http://www.rosecompiler.org/

Why Use ROSE

ROSE is not grep, sed, LLVM, or a Perl script. A ROSE Tool uses the ROSE compiler-based infrastructure to parse code into a complete Abstract Syntax Tree (AST). The AST contains all the syntax and semantic information in the original code, and has a rich API supporting sophisticated analysis and transformations. The ROSE Tool queries the AST and reports on and/or changes the AST, then may emit new code from the AST. All ROSE Tools can thus precisely replicate the parsing and semantic analysis behaviour of multiple compiler languages, vendors, and versions. New ROSE Tools can quickly be created by customers or by the ROSE Team. ROSE is open-source, and is portable across a large and expanding range of platforms. ROSE Tools can process large code bases, and the ROSE infrastructure and ROSE Tool collection are continuously upgraded and extended by the LLNL ROSE Team and outside contributors.

Installation Instructions

From the source tree run ./build. Then navigate to your build tree and run configure and make.

../src/configure --prefix=/path/for/ROSE/install \
                 --enable-languages=c,c++ \
                 --with-boost=/path/to/boost/install
make -j${NUM_PROCESSORS}
make install -j${NUM_PROCESSORS}
make check -j${NUM_PROCESSORS}

For full install instructions go to https://github.com/rose-compiler/rose/wiki/How-to-Set-Up-ROSE

ROSE Directories

  • src: all source code for ROSE
  • tests: several subdirectories of test codes for ROSE.
  • tools: usable feature complete tools
  • projects: in development and incomplete tools
  • tutorial: exmples of ROSE features
  • docs: files for bulding the documentation

Documentation

For more information about ROSE and how to use it visit the github wiki at https://github.com/rose-compiler/rose/wiki

The ROSE API can be found at http://doxygen.rosecompiler.org. The API can also be made locally by going to cd $ROSE_BUILD/docs/Rose and runnig make doxygen_docs. The html pages can then be found in ${ROSE_BUILD}/docs/Rose/ROSE_WebPages and can be easily viewed by pointing your browser at ${ROSE_BUILD}/docs/Rose/ROSE_WebPages.

About

The latest development version of rose. It may not pass all regression tests.

License:Other


Languages

Language:C 71.6%Language:C++ 17.7%Language:Fortran 3.8%Language:Makefile 1.6%Language:Shell 1.2%Language:TeX 0.7%Language:Perl 0.6%Language:M4 0.5%Language:CMake 0.4%Language:Objective-C 0.4%Language:Java 0.4%Language:Prolog 0.2%Language:Python 0.2%Language:Roff 0.1%Language:Yacc 0.1%Language:C# 0.1%Language:HTML 0.1%Language:Pascal 0.1%Language:Assembly 0.0%Language:LLVM 0.0%Language:JavaScript 0.0%Language:Cuda 0.0%Language:Gnuplot 0.0%Language:Visual Basic 0.0%Language:OpenEdge ABL 0.0%Language:Ruby 0.0%Language:Lex 0.0%Language:PLpgSQL 0.0%Language:Rich Text Format 0.0%Language:Haskell 0.0%Language:PHP 0.0%Language:SQLPL 0.0%Language:CSS 0.0%Language:Tcl 0.0%Language:Ada 0.0%Language:SMT 0.0%Language:Batchfile 0.0%Language:Awk 0.0%Language:MATLAB 0.0%Language:X10 0.0%Language:PigLatin 0.0%Language:Pawn 0.0%Language:sed 0.0%Language:HCL 0.0%Language:Emacs Lisp 0.0%Language:COBOL 0.0%Language:QMake 0.0%Language:TSQL 0.0%Language:M 0.0%Language:Forth 0.0%Language:Modula-3 0.0%Language:SourcePawn 0.0%Language:Common Lisp 0.0%