-
Notifications
You must be signed in to change notification settings - Fork 98
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
Emit a stack size section using LLVM and parse this data #106
Comments
@whitequark how does this relate to #79 (Expose the -warn-stack-size= LLVM option)? At first glance it sounds like using the stack size section (as described in this issue) would give us more fine grained information and that we should do this instead of #79. |
Generally yes, but I think the stack size section might not be supported on all targets, so this should be investigated more carefully. |
PR rust-lang/rust#51946 exposes this LLVM feature |
Update: The The |
Update:
I think we can close this issue since the feature is exposed in rustc and there are libraries to parse the emitted data and end user tools. It's unclear if this flag will ever be stabilized or when; there's no precedent for exposing stable interfaces to llvm internals from rustc (except for 1.0 mistakes like llvm-args) and I'm not aware of any plans to do anything like that in the near future. If I heard of any movement on that front I'll report back here. |
From the manual:
The text was updated successfully, but these errors were encountered: