Comments (2)
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.
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)
- Memory Lane - Zero Cost Logging with deferred formatting HOT 4
- #[init()] functions should provide a CriticalSection HOT 5
- [tracking issue] 1.0 (previously 0.6) push HOT 7
- Resource proxy mutabability, mutex Trait and closure captures (async fn) HOT 7
- SeqCst around critical sections.
- Spawn and message queues. HOT 1
- Synchroneous task
- Emulation of Monotonic Timers
- Resource handling take 2 HOT 1
- RTIC on RISC-V - roadmap / tasks HOT 1
- Tracing RTIC tasks over ITM HOT 4
- Async idle
- Lockall API HOT 12
- Add support for the async functions HOT 1
- Soundness of RTIC
- Fine grained concurrency on thumbv6m (no BASEPRI). HOT 1
- Modular RTIC HOT 2
- Type based Layout for Rust RTIC
- rtic-sync: DynSender and DynReceiver HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from rfcs.