moros icon indicating copy to clipboard operation
moros copied to clipboard

Taking code from Redox: ReLibC(Rust port of std C)

Open xplshn opened this issue 1 year ago • 1 comments

relibc is a portable POSIX C standard library written in Rust. It is under heavy development, and currently supports Redox(Entirely rust written OS) and Linux.

I think we could take some code from relibc for the LibC implementation of MOROS, there are some other things in their repo I think would be great additions to MOROS, also, their bootloader seems mature enough, though I think Limine also suits for the job pretty well. Code is at: https://gitlab.redox-os.org/redox-os/relibc Some awesome code also here: https://gitlab.redox-os.org/redox-os/binutils

xplshn avatar Nov 19 '23 01:11 xplshn

For the bootloader I use the 0.9 version of this one: https://github.com/rust-osdev/bootloader/

But I currently have an issue with it because I need to move my kernel to the higher half address space and more recent versions of it improved that but I'd have to give up the VGA Text Mode I'm using to keep thing simple as explained in https://github.com/vinc/moros/issues/229#issuecomment-894629706

I've looked into Limine in the past but one long term goal for MOROS is to progressively reduce the number of dependencies to zero while keeping the complexity of the OS manageable to fit in one standard human brain. So I've been thinking recently about writing my own bootloader instead.

For (re)libc I have to think about it. I'm not super interested about the whole Unix ecosystem of tools because there's so many good systems for that already. Instead I'm exploring what I can do in userspace with MOROS Lisp and I've been thinking recently about writing a simple assembler with it.

vinc avatar Nov 19 '23 09:11 vinc