The following code:
```
__gshared ubyte[0x1000000 - 1] BUFFER = 0;
void main() {}
```
When compiled with: dmd -g -m64
Will produce an exe of size: 21_378_560 bytes
Without -g, it'll produce an exe of size: 415_744 bytes
It only happen on windows, only with DMD, only with that -g option
Comment #1 by ryuukk.dev — 2021-03-25T01:05:01Z
It is also happening with -m32mscoff
As discussed in the IRC, it seems to be related to COFF stuff, i'm not knowledgeable enough to dig deeper
Comment #2 by robert.schadek — 2024-12-13T19:15:27Z