-
Notifications
You must be signed in to change notification settings - Fork 12.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Compile-time static stack size #4389
Comments
This could be done on its own, but I think it could also be an elegant sub-feature of a polymorphic effect system. |
Still relevant |
visiting for triage, email from 2013-08-26 switching from (My personal thinking is that: 1. we are unlikely to get a polymorphic effect system in, at least not anytime soon, certainly not for rust 1.0, and 2. maybe one could implement this as a standalone tool for a subset of the language; but I have not really fleshed out much of my thinking about the latter.) |
On Friday, August 30, 2013 3:13:15 AM, Felix S Klock II wrote:
The reason this is an issue is rust currently relies on gcc / glibc |
There's no dependency on glibc or gcc for split stacks, since it's implemented by LLVM and it just calls our |
While this is an interesting prospect, it's not going to permit using recursion, function pointers, trait objects or closures. I'm not really sure the remaining language could still be considered as Rust. A specific proposal would need to be made through the RFC process, as this feature request isn't actionable without consensus on a design. |
This is a possible idea to implement #3608 by static analysis of stack usage to create a statically sized stack depth at compile-time.
The text was updated successfully, but these errors were encountered: