Compiler Explorer Assembly Output for C, C++ and D (dlang)

Basile B. b2.temp at gmx.com
Thu May 27 10:48:43 UTC 2021


On Thursday, 27 May 2021 at 08:47:50 UTC, Tariq Siddiqui wrote:
> When using Compiler Explorer (https://godbolt.org/) to compare 
> assembly output of simple programs, why D language assembly 
> output is so long compared to C or C++ output. The simple 
> square function output is the same for C, C++, and D, but the D 
> output has additional lines that are not highlighted when 
> hovering over the square function in the source code.
>
>  - What are these additional lines?
>  - How can I remove these lines from being generated?

In addition to other answers, see 
https://forum.dlang.org/post/myrjutqyzpzlyltrdkwc@forum.dlang.org


More information about the Digitalmars-d-learn mailing list