Array concatenation & optimisation
IchorDev
zxinsworld at gmail.com
Sun Jul 21 16:12:44 UTC 2024
On Sunday, 21 July 2024 at 15:41:50 UTC, Johan wrote:
> https://d.godbolt.org/z/sG5Kancs4
>
> The short array is not dynamically allocated (it's allocated on
> the stack, or for larger arrays it will be a hidden symbol in
> the binary image), even at `-O0` (i.e. `-O` was not passed).
Wow thanks, that's an impressive find! I didn't know LDC was
quite so clever either.
More information about the Digitalmars-d-learn
mailing list