Skip to content
프로젝트

소개

PROPELLER: 프로파일 기반 최적화를 수행하는 대규모 LLVM 기반 재링커

기타 프로젝트

이 수치를 측정하는 방법

측정된 스타 증가

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

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

README.md

Original

LLVM Propeller

Propeller is a profile-guided, relinking optimizer for warehouse-scale applications. It is built on top of LLVM and provides a framework for computing whole-program optimizations for applications built with LLVM.

For artifact evaluation, see ArtifactEvaluation/README.md

Quickstart

Prerequisites and dependencies

Operating System Version
Ubuntu 22.04 or newer

While the Propeller build system automatically pulls in most of its dependencies, you will need to install a few packages manually:

# Common dependencies
sudo apt install -y wget lsb-release software-properties-common gnupg

# Propeller builds with Clang 19.0.0 or newer.
wget https://apt.llvm.org/llvm.sh
chmod +x llvm.sh
sudo ./llvm.sh 19
export CC=clang-19
export CXX=clang++-19

# For the CMake build
sudo apt-get update && sudo apt-get install -y \
    libelf-dev \
    libssl-dev \
    libzstd-dev

Building Propeller from source

The Propeller repository provides both CMake and Bazel build configurations. The CMake build requires CMake 3.24 or newer, and the Bazel build requires Bazel 5.0 or newer.

CMake

cmake -G Ninja -B build
ninja -C build generate_propeller_profiles

# Build and run tests (optional)
ninja -C build
ninja -C build test

Bazel

bazel build //propeller:generate_propeller_profiles

# Build and run tests (optional)
bazel test //propeller/...:all

Generating a Propeller profile

./generate_propeller_profiles \
    --binary=/path/to/profiled/binary \
    --profile=/path/to/input/profile.txt \
    --cc_profile=/path/to/out/cc_profile.txt \
    --ld_profile=/path/to/out/ld_profile.txt

Propeller generates compiler profiles (cc_profile.txt) and linker profiles (ld_profile.txt). The compiler profile is used by LLVM to guide optimizations and is described in Propeller Profile Format.

관련 프로젝트 살펴보기

불러오는 중…