D generates large assembly for simple function
Johan Engelen
j at j.nl
Sun Jan 28 14:33:04 UTC 2018
On 01/27/2018 11:42 AM, Matt wrote:
> Godbolt link: https://godbolt.org/g/t5S976
Careful with these comparisons guys. Know what you are looking at.
Rust does not eliminate setting the framepointer register, and so
it looks "bad" [1].
Clang also sets the framepointer for macOS ABI regardless of
optimization level.
https://godbolt.org/g/eeo81n
[1] See https://github.com/rust-lang/rust/pull/47152
-Johan
More information about the Digitalmars-d-learn
mailing list