Re:Rust for C++ programmers – part 4: unique pointers
by berkut on Tuesday April 29, 2014 @03:30PM
(#7669406)
> It uses LLVM support.
What do you mean by this? 1. Any scaler code might get vectorised by the LLVM if you're luckly.
or 2. You can write the instrinsics yourself in inline code, and the compiler will (almost) obey them verbatim?
In my experience, LLVM's vectorisation is behind GCC and quite a way behind ICC...
It uses the LLVM support.
> How do you do ASM in Rust?
With the asm! macro.
> Can you align memory in rust?
Yes. Write an allocator that does this and use it. The language doesn't have an allocator "built-in" and has full support for custom allocators.