Skip to content
프로젝트

소개

ROSE는 LLNL이 개발한 오픈 소스 컴파일러 프레임워크로, 소스 및 바이너리 수준에서 프로그램 분석과 변환을 지원합니다. C, C++(UPC, OpenMP 또는 Cuda를 사용하는 애플리케이션 포함), Fortran, Java, Ada의 컴파일러 프런트엔드로 사용할 수 있으며, 다양한 명령어 집합의 ELF 및 PE 바이너리 형식을 지원합니다.

프로그래밍 언어 및 런타임

이 수치를 측정하는 방법

측정된 스타 증가

in 24h
0
in 7 days
+1
in 15 days
+3
in 1 month
기록 수집 중

서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.

README.md

Original

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 (up to C23), C++ (up to C++17), OpenMP, Cuda, and UPC applications. ROSE also has support for Java (7), Ada (95), and the analysis of binary files which use the ARM, AMD64 (x86_64), Intel x86, MIPS, Motorola 68k, PowerPC (32- and 64-bit), Java byte code, or CIL instruction sets. 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.

ROSE Doxygen API

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

ROSE requires CMake version >= 3.15

Rose supports multiple languages, for this example we will only enable C support.

Assuming an out-of-source build in a directory called "rosebuild"

mkdir rosebuild
cd rosebuild
cmake .. -DCMAKE_INSTALL_PREFIX=/path/for/ROSE/install \
         -DENABLE_C=ON
make -j${NUM_PROCESSORS} install

Supported Compilers

When ROSE is configured with C/C++ support it needs the EDG front end. EDG is open source (Apache-2.0 WITH LLVM-exception); ROSE's patched copy is the git submodule src/frontend/CxxFrontend/EDG/edg_compiler (https://github.com/rose-compiler/edg) and is compiled as part of ROSE:

git submodule update --init src/frontend/CxxFrontend/EDG/edg_compiler

ROSE with C/C++ support is tested with GCC 7 through 12. The support for 11 and 12 is in progress, so for fully supported versions use GCC 7 through 10. See src/frontend/CxxFrontend/EDG/README.

When not using c/c++ support GCC 7 through 13 are supported.

ROSE Directories

  • src: all source code 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://rose-compiler.github.io/. The API can also be made locally by going to cd $ROSE_BUILD/docs/Rose and running 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.

License

This project is licensed under the BSD License - see the LICENSE.md file for details SPDX-License-Identifier: BSD-3-Clause

LLNL-CODE-2018981

관련 프로젝트 살펴보기

불러오는 중…