D generates large assembly for simple function

Matt vodkahaze at hotmail.com
Sat Jan 27 19:41:21 UTC 2018


Playing around with Godbolt, D seems to generate an embarassing 
amount of assembly for a simple function (50ish for squaring an 
int vs 4 for C++ and 7 for Rust). Even Go compiles to less 
assembly.

Is there something I'm missing?


More information about the Digitalmars-d-learn mailing list