ReturnInfinity / BareMetal-OS-legacy

BareMetal is a 64-bit OS for x86-64 based computers. The OS is written entirely in Assembly while applications can be written in Assembly, C/C++, and Rust.
1.74k stars 302 forks source link

README.md: add Rust to supported languages #74

Closed techtonik closed 9 years ago

techtonik commented 9 years ago

This will also require changing description on https://github.com/ReturnInfinity/BareMetal-OS

techtonik commented 9 years ago

I'd say that I don't know it much.

From this mail http://comments.gmane.org/gmane.comp.lang.rust.devel/10876 there is a link to http://www.ntecs.de/blog/2014/07/29/rust-ported-to-dragonflybsd/ which says that The Rust libraries (e.g. liballoc, liblibc, libstd, libnative) need to be ported.. I am not sure at which level Rust accesses STDIN/STDOUT and how are they wrapped there.

The calling convention / mechanism for this OS is here https://github.com/ReturnInfinity/BareMetal-OS/blob/master/docs/BareMetal%20OS%20-%20API.md#b_output so I guess that the code generator for Rust should be modified to support this call if BareMetal OS is the target. http://www.slideshare.net/thomaslee/rust-march2014-32891901

techtonik commented 9 years ago

Just for the reference, an example of Rust application is in 740d2b23 along with some comments.