On Wednesday, 27 April 2022 at 16:37:21 UTC, Alexander Zhirov
wrote:
On Wednesday, 27 April 2022 at 16:07:53 UTC, Adam D Ruppe wrote:
How small did it get?
```sh
dmd: 3136896 byte
ldc: 223952 byte
```
but uses libraries ldc-shared.so
```sh
linux-vdso.so.1 (0x00007ffef5d2d000)
libphobos2-ldc-shared.so.99 =>
/usr/lib64/libphobos2-ldc-shared.so.99 (0x00007f667e9ee000)
libdruntime-ldc-shared.so.99 =>
/usr/lib64/libdruntime-ldc-shared.so.99 (0x00007f667e8ac000)
libm.so.6 => /usr/lib64/libm.so.6 (0x00007f667e7c5000)
libgcc_s.so.1 => /usr/lib64/libgcc_s.so.1
(0x00007f667e7a9000)
libc.so.6 => /usr/lib64/libc.so.6 (0x00007f667e589000)
/usr/lib64/ld-linux-x86-64.so.2 (0x00007f667eebe000)
```
And if without using dynamic libraries, it weighs `1219776` bytes
```sh
linux-vdso.so.1 (0x00007ffca9ad0000)
librt.so.1 => /lib/librt.so.1 (0x00007f6240fc4000)
libdl.so.2 => /lib/libdl.so.2 (0x00007f6240fbe000)
libpthread.so.0 => /lib/libpthread.so.0 (0x00007f6240f9d000)
libm.so.6 => /lib/libm.so.6 (0x00007f6240e58000)
libgcc_s.so.1 => /usr/lib/libgcc_s.so.1 (0x00007f6240e3e000)
libc.so.6 => /lib/libc.so.6 (0x00007f6240c74000)
/lib64/ld-linux-x86-64.so.2 => /lib/ld-linux-x86-64.so.2
(0x00007f6240ff7000)
```