ferros icon indicating copy to clipboard operation
ferros copied to clipboard

Determine elf proc stack size by inspecting binary

Open mullr opened this issue 5 years ago • 1 comments

We currently hardwire elf procs to have a 64k stack. We have the opportunity to find out their actual required stack size, using the keep-stack-sizes compiler directive (perhaps aided by https://crates.io/crates/stack-sizes) and some kind of call graph analysis, to figure out the maximum possible stack size. (This will break on recursive code, which is actually desirable. We at least want an explicit opt-out for that.)

mullr avatar Aug 14 '19 21:08 mullr

See also https://crates.io/crates/cargo-call-stack

mullr avatar Aug 15 '19 00:08 mullr