https://github.com/federicoponzi/green_trust
https://github.com/federicoponzi/green_trust
Last synced: over 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/federicoponzi/green_trust
- Owner: FedericoPonzi
- Created: 2022-06-19T18:27:56.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2022-06-21T19:45:00.000Z (about 4 years ago)
- Last Synced: 2025-01-29T13:12:08.969Z (over 1 year ago)
- Language: Rust
- Size: 2.93 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# green_trust: A green thread rust library
## Compiler features:
### Naked functions
https://github.com/rust-lang/rfcs/blob/master/text/1201-naked-fns.md
when Rust compiles a function, it adds a small prologue and epilogue to each function and this causes some issues for us
when we switch contexts since we end up with a misaligned stack. Once
we need to switch back to the same stack again we end up in trouble.
Marking a function as #[naked] removes the prologue and epilogue.