News for hackers. Stuff that matters.
Re:Raspberry Pi Bare Metal Programming with Rust by nitrogen on Sunday January 17, 2016 @06:00AM (#10919105)
Does bare metal Rust also use memcpy() or other library functions? If so, how are those linked into the final binary?
Re:Raspberry Pi Bare Metal Programming with Rust by steveklabnik on Sunday January 17, 2016 @08:51AM (#10919442)
Yes, LLVM will assume three or four functions exist regardless. The rlibc crate provides a Rust implementation of them, so you just add it and you're done. https://github.com/alexcrichton/rlibc
Re:Raspberry Pi Bare Metal Programming with Rust by kzrdude on Sunday January 17, 2016 @11:07AM (#10919845)
They are usually provided by libc, but if you do low level stuff they are provided by other means.