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 305 forks source link

BareMetal Rust PoC #97

Open Roxxik opened 9 years ago

Roxxik commented 9 years ago

just take a look https://github.com/Roxxik/Hello-BareMetal-Rust i try and improve this further to get arbitary rust code running

IanSeyler commented 9 years ago

Slick! I haven't had a chance to try it but looks good. Does Rust support inline assembly?

benaryorg commented 9 years ago

Yes it does.

Roxxik commented 9 years ago

I chose to not include rust inline assembly, because currently it is unstable, undocumented and not conformant to gcc inline assembly. That's why i have included a c layer to make the systemcalls.

(I tried to use it but the rust compiler always optimized the assembler away :( )

benaryorg commented 9 years ago

@IanSeyler here, have some inline assembly.