About compiler memory consumption
Dicebot
public at dicebot.lv
Wed Dec 4 08:53:12 PST 2013
On Wednesday, 4 December 2013 at 16:44:14 UTC, Puming wrote:
> Thanks, I'll try that :) are there docs about how to use phobos
> as a shared lib?
$ cat test.d
import std.stdio;
void main()
{
writeln("Hello");
}
$ dmd test.d -defaultlib=libphobos2.so
$ ls -lah test
-rwxr-xr-x 1 dicebot users 26K Dec 4 17:51 test
$ ldd test
linux-vdso.so.1 (0x00007fffc82e7000)
libphobos2.so.0.64 => /usr/lib/libphobos2.so.0.64
(0x00007ffd253e0000)
libpthread.so.0 => /usr/lib/libpthread.so.0 (0x00007ffd251c2000)
libm.so.6 => /usr/lib/libm.so.6 (0x00007ffd24ebf000)
librt.so.1 => /usr/lib/librt.so.1 (0x00007ffd24cb7000)
libc.so.6 => /usr/lib/libc.so.6 (0x00007ffd2490c000)
libdl.so.2 => /usr/lib/libdl.so.2 (0x00007ffd24708000)
libcurl.so.4 => /usr/lib/libcurl.so.4 (0x00007ffd244a3000)
/lib64/ld-linux-x86-64.so.2 (0x00007ffd25a4e000)
libssh2.so.1 => /usr/lib/libssh2.so.1 (0x00007ffd2427a000)
libssl.so.1.0.0 => /usr/lib/libssl.so.1.0.0 (0x00007ffd2400d000)
libcrypto.so.1.0.0 => /usr/lib/libcrypto.so.1.0.0
(0x00007ffd23c05000)
libz.so.1 => /usr/lib/libz.so.1 (0x00007ffd239ef000)
(from my Arch Linux x64 box)
More information about the Digitalmars-d-learn
mailing list