Planet of the Crabs
🦀 fearless rust


How to call Rust from assembly, and vice versa

Posted on by Rust on Julia Evans

In the last few days I’ve been working on a kernel in Rust. This has entailed learning about linkers and foreign function interfaces and all kinds of things. To learn this stuff, I read this guide to linkers, looked at the Rust foreign function interface tutorial, and asked a million questions on the Rust IRC channel. Disclaimer: even more than usual, some of this is probably wrong. So. Linkers.