Code Monkey home page Code Monkey logo

Comments (2)

tmplt avatar tmplt commented on August 28, 2024

The above pitfall is probably not of concern: RTIC already operates with nested macros in mind.

Another question entirely regards additional metadata. Of high interest to my thesis is the monitoring of shared resources (both value and lock status), but also that of queue sizes. For resources values the in-memory address must be known. Must this address be found after building by help of build.rs?

from rfcs.

perlindgren avatar perlindgren commented on August 28, 2024

RTIC parses the app and will see the attributes at top level. RTIC does currently NOT parse the function bodies and will not see the inner attributes. In both cases the attributes will be remained and the corresponding expansions performed. As far as I know we cannot control the order of macro expansion, so it might be that the #[trace] have already been expanded at the point where RTIC gets the token stream (this I'm not 100% sure of however). In any case to ensure that RTIC includes the #[trace] in an intelligent way I believe it needs to be part of the RTIC syntax (on par with other attributes that RTIC handles). In that case it could as well be part of the #[task] attributes. Its certainly doable and not high effort, but as everything else it adds to the complexity and I'm not sure such a change would be accepted.

from rfcs.

Related Issues (20)

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.