5 ms·
> The runtime features a separate C stack that's very quick (8 instructions) to switch to I hadn't heard of this -- is it still true now that segmented stacks
by haberman 12y ago
> The runtime features a separate C stack that's very quick (8 instructions) to switch to
I hadn't heard of this -- is it still true now that segmented stacks are gone? If so, why does C need a separate stack?
- ehsanu1 12y agoNot sure this is up-to-date, but: http://doc.rust-lang.org/guide-ffi.html#stack-management http://doc.rust-lang.org/guide-ffi.html#stack-management tldr; C's stack is interleaved with Rust's stack.
- pcwalton 12y agoThis is out of date. Calling from Rust into C is now as fast as calling from C into C.