4 ms·
I do not understand much about low level languages or operating systems, but could someone explain why does this project need C in its codebase?
by Jhsto 11y ago
I do not understand much about low level languages or operating systems, but could someone explain why does this project need C in its codebase?
- janvidar 11y agoProbably doesn't, but it does currently contain a copy of lua, which is written in C.
- steveklabnik 11y agoThere are Rust OS projects with nothing but some assembly and then Rust code, so it shouldn't be strictly required.
- eximius 11y agoDisclaimer: haven't had time to read the code yet. It is probably easier to do all of the massively unsafe things required to initialize in C than it is in Rust. Then Rust is just used after C does its dirty things.
- Hemospectrum 11y agoThat shouldn't ever be necessary. Part of the point of Rust is that you can do unsafe low-level work, so long as you tag it with the "unsafe" keyword to enable pointer arithmetic and so forth.
- jackpot51 11y agoThe OS is completely Rust, with a minor amount of ASM for the bootloader and other requirements. C is a third party possibility, I allow C programs to run on Redox.