Replies to message #107

Rusty Metal Skull Gun

Rust (the language) hate thread

printf version, which has more readable assembly: https://godbolt.org/z/5r41516Px The answer's going to be because there's undefined behaviour...
3

Rust (the language) hate thread

When invoking undefined behavior, anything the compiler outputs is legal, so in particular, a compiler can optimize under the assumption that UB...
Gigantic Penguin

Rust (the language) hate thread

These posts explain the issue very well (and they apply to both Rust/C++/any language with similar memory models): - Pointers Are Complicated, or...
Back
Top Bottom