3 ms·
Rust stable still does not have inline assembly. Additionally, we have moved away from the "whatever LLVM does" feature, and built our own. There are significa
by steveklabnik 6y ago
Rust stable still does not have inline assembly. Additionally, we have moved away from the "whatever LLVM does" feature, and built our own.
There are significant language issues with doing something like this. Yes, in theory, you could do something. But it's going to be very unsafe, and very error prone.
- Subsentient 6y agoI do see that the LLVM IR thing isn't being used anymore. I hope asm! ends up in stable Rust soon, seems like a pretty big oversight. Then again, MSVC dropped inline ASM altogether, which seems really dumb. One of these days I'm going to write a crate that easily enables doing all the unsafe, dangerous, stupid things that C programmers want to do, including gotos, with no safety checks or variable lifespan verification of any kind. And I'm going to name it "evil". :^) I will do it, eventually. ^^
- taxcoder 6y agoAs long as you don't name it evil-mode.