How to stop DMD from exploding the executable file size?
solidstate1991
laszloszeremi at outlook.com
Thu Sep 1 22:15:03 UTC 2022
On Tuesday, 30 August 2022 at 22:58:44 UTC, ryuukk_ wrote:
> ```
> $ ldc2 -m64 app.d
> $ ll
> total 4545
> -rw-r--r-- 1 ryuukk 197121 69 Aug 31 00:57 app.d
> -rwxr-xr-x 1 ryuukk 197121 453120 Aug 31 00:57 app.exe*
> -rw-r--r-- 1 ryuukk 197121 4195865 Aug 31 00:57 app.obj
> ```
>
> ```
> $ dmd -m64 app.d
> $ ll
> total 8617
> -rw-r--r-- 1 ryuukk 197121 69 Aug 31 00:57 app.d
> -rwxr-xr-x 1 ryuukk 197121 4623872 Aug 31 00:57 app.exe*
> -rw-r--r-- 1 ryuukk 197121 4196322 Aug 31 00:57 app.obj
> ```
LDC has way better optimization features, so it's kinda expected.
More information about the Digitalmars-d
mailing list