Skip to main content

analyze_function

Function analyze_function 

Source
pub fn analyze_function(name: &str, instrs: &[ArmInstruction]) -> StackFrame
Expand description

Walk one function’s FINAL emitted stream and record its own stack profile.

The running delta is signed because an epilogue POP/ADD SP legitimately brings it back up; the reported figure is the maximum depth reached, which is what an embedder must reserve.