5 ms·
You are a level too high in the stack - what is happening behind the scenes when you execute any of those?
by aidanlister 8y ago
You are a level too high in the stack - what is happening behind the scenes when you execute any of those?
- comex 8y agoIf it were my design, IPC (auto-generated) to a corresponding method in the kernel.
- nine_k 8y agoAs long as this gets type-checked at compile time, the types info can be erased during compilation and be absent at runtime. Since traits / interfaces can't have their methods overridden, you don't need the dynamic dispatch, per-instance VMT, and such; you can have fixed offsets in a method table per class, both in userland and in kernel. (Some of the indirect calls can probably be made direct if the class is exactly known at compile time.)