3 ms·
That's interesting. What is the cost of switching the stack when calling C code? Do you allocate a new stack every time a C function is called from Rust? If
by soamv 15y ago
That's interesting. What is the cost of switching the stack when calling C code? Do you allocate a new stack every time a C function is called from Rust?
If you inline a compiled C function, don't you have to do the stack switching for whatever that inlined function might call? Or do you only inline code that doesn't have any function calls?