Giter Club home page Giter Club logo

post-dominators-rust's Introduction

Implementation of Post-Dominators Analysis for the Rust Compiler

BSc. Thesis, Computer Science Department, University of Crete

Abstract

Increased demand for reliable, safe and efficient software has led to modern programming languages aiming to incorporate these principles as part of their core, using Static Code Analysis. One of these languages is Rust. Static Code Analysis is the analysis of source code during compilation instead of a run-time environment. This study shows the process of integrating Post-Dominators Analysis into the Rust Compiler and provides a better understanding of the compiler and how it handles static analysis. Post-Dominators Analysis is a Backward Control-Flow Static Analysis providing information to other analyzers and optimizers. It finds for each point of execution of a function, which other parts is certain that they will run in the future.

For the evaluation, the Rust Compiler source code is used as the code base for the measurements, because it is one of the largest software written in Rust and thus it is a representative sample. The source code was compiled by the rustc version that includes the Post-Dominators Analysis. All metrics were extracted by using a function inside the compiler that took the role of the consumer for the analysis. The evaluation is focused on what types of graphs the compiler is processing in general and how the structure of analyzed graphs affects the result of Post-Dominators Analysis.

Implementation

post-dominators-rust's People

Contributors

imelidonis avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.