I think any modern compiler should do that by the way. In my code, rustc converted / 2 to "asr r6, r0, #1" successfully.
I don't particularly have a desire to use Rust or any other programming language for "devilish antisocial purposes". Neither do I want to be unfriendly to anyone on reddit or anywhere else.Sounds like an expanded version of the Raspberry Pi forum rules "Be good to each other"... But it doesn't say you can't use rust for whatever devilish antisocial purpose you had in mind, just abide by the rules if you contribute to IRC channels, github or official rust.org forum. So you could use rust and be as unfriendly as you want on reddit (so long as you don't harass people).
Rust compiles itself since 2011.Heater wrote: ↑Tue Nov 21, 2017 6:33 pmI find it a bit dishonest for rust-lang.org to describe Rust as a "systems programming language". As far as I can tell Rust cannot compile itself yet. You cannot build a Rust compiler using a Rust compiler. It depends on LLVM. That is to say C++.
Maybe one day.
The same year, work shifted from the initial compiler (written in OCaml) to the self-hosting compiler written in Rust. Known as rustc, it successfully compiled itself in 2011.
I think Rust being a systems programming language refers to the feature set which allows writing low-level code such as device drivers and memory managers which interact directly with the hardware.Heater wrote: ↑Sun Nov 26, 2017 3:07 pmThat's not quite true now is it mifwoo.
Yes Rust compiles itself but it generates an intermediate representation of the code, LLVM IR.
One then needs LLVM to optimize and generate code from that intermediate representation. LLVM is written in C++.
So, if you want to build a complete Rust tool chain from scratch you need a working Rust compiler and a working C++ compiler.
That is the way I read it as well.I think Rust being a systems programming language refers to the feature set which allows writing low-level code such as device drivers and memory managers which interact directly with the hardware.
I think that was my point. As it stands you cannot build a Rust only self hosting system, on Redox for example. You would have to get a C++ compiler running on Redox first.If you want a self-hosting system based on Rust, which is a different thing in my opinion, ...
That all sounds far to tortuous.the easiest way might be to first write a C compiler in Rust. Use the Rust-built C compiler to compile a C++ compiler, then use the C++ compiler to compile LLVM.
Yes, Rust has a decent FFI so you can call C code from Rust and vice versa without too much hassle. It's quite a nice language.
We have secure comms, the IoT suppliers just need to use it....and some of course do.
We know exactly what's inside openssl. Here it is:Reusing old code with who knows what inside?
Users browsing this forum: No registered users and 5 guests