Giter Site home page Giter Site logo

Comments (3)

ktrianta avatar ktrianta commented on September 15, 2024 1

Several examples have been added. It remains to define exactly what the output of a sound call graph generator should be. What about precision of the generated call graph?

from rust-callgraph-benchmark.

jhejderup avatar jhejderup commented on September 15, 2024

This is a good question w.r.t precision. I believe it could perhaps make sense to add examples exercising such cases (e.g., exactness of resolving Trait-Implementation calls, etc) in the benchmark. Although I am not sure if this is relevant at this stage (or how this can be tested)

from rust-callgraph-benchmark.

ktrianta avatar ktrianta commented on September 15, 2024

Conditional compilation options are expressed using Cargo features.

A call-graph generator that uses information, which are product of a compilation phase, will be aware only of the the parts of code that were considered relevant according to the activated conditional compilation conditions. This is true because Cargo removes irrelevant to the activated conditions parts of code before invoking the Rust Compiler.

A call-graph generator that would take into account all available code inside conditional compiled sections, would probably achieve that by analysing the program multiple times to cover all possible combinations of activated conditional compilation conditions. Otherwise, it would have to analyse the program once without taking into account conditional compilation conditions, which could result in the program being invalid (duplicate definitions, etc.).

Questions regarding precision should be asked separately from conditional compilation, as it is a more pervasive issue.

from rust-callgraph-benchmark.

Related Issues (3)

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.