3 ms·
> but inline assembly in C relies on vendor-specific extensions. Whereas Rust is a standard with multiple implementations?
by jeremyjh 3y ago
> but inline assembly in C relies on vendor-specific extensions.
Whereas Rust is a standard with multiple implementations?
- oconnor663 3y agoI should've said "stabilized" instead of "standardized" to avoid stepping on this conversational landmine. But an important practical difference is that Rust supports inline assembly on Windows. (Correct me if I'm wrong, but I think MSVC mostly does not support inline asm.)
- trealira 3y agoIt does support inline assembly [1]. However, it's different than the way GCC supports inline assembly. It seems nicer, TBH. [1]: https://learn.microsoft.com/en-us/cpp/assembler/inline/inline-assembler?view=msvc-170 https://learn.microsoft.com/en-us/cpp/assembler/inline/inlin...
- oconnor663 3y agoFrom that source: > Inline assembly is not supported on the ARM and x64 processors.