[Bug 289] Static linking has wrong libc/libpthread order

gdc-bugzilla at gdcproject.org gdc-bugzilla at gdcproject.org
Mon Mar 26 21:51:04 UTC 2018


https://bugzilla.gdcproject.org/show_bug.cgi?id=289

--- Comment #4 from Stefan Schuerger <stefan at schuerger.com> ---
Fun fact: When taking the "helloworld" example from the dlang.org page
(https://tour.dlang.org/):

import std.stdio;
import std.algorithm;
import std.range;

void main()
{
    // Let's get going!
    writeln("Hello World!");

    // An example for experienced programmers:
    // Take three arrays, and without allocating
    // any new memory, sort across all the
    // arrays inplace
    int[] arr1 = [4, 9, 7];
    int[] arr2 = [5, 2, 1, 10];
    int[] arr3 = [6, 8, 3];
    sort(chain(arr1, arr2, arr3));
    writefln("%s\n%s\n%s\n", arr1, arr2, arr3);
    // To learn more about this example, see the
    // "Range algorithms" page under "Gems"
}

compiled as static and stripped, the ARM binary is 1.1M. When you comment out
all the code but the writeln("Hello World!"), the stripped binary grows to
1.7M...

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the D.gnu mailing list