How to reduce executable filesize

CaitlinSmith CaitlinSmith at dooinfo.com
Mon Jul 29 09:16:05 UTC 2019


On Friday, 12 July 2019 at 16:37:05 UTC, Andre Pany wrote:
> Hi,
> If I remember correctly on linux (ubuntu) you can compile an 
> executable which uses and DRuntime as shared objects.
>
> How is the ldc2 command for this?
> I assume I can find the shared objects for phobos and DRuntime 
> in the ldc2 linux x86_64 release archive?
>
> Is there also an additional argument to strip any non used 
> symbols?
>
> Kind regards
> Andre

If you want to make more compression, then do it with UPX. The 
complete order of make extremelly compression are: strip.exe. UPX.
...
Using upx should be sufficient to reduce (compress) size of 
executable file.
Download and extract upx.
Select the files you want to compress.
Click Start compression
Exact steps are here:
https://docsbay.net/upx-how-to-reduce-executable-files-size


More information about the digitalmars-d-ldc mailing list