[Issue 14748] Removing std.stdio import causes 2x increase in "Hello, world" program binary filesize

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Tue Jul 21 05:11:18 PDT 2015


https://issues.dlang.org/show_bug.cgi?id=14748

--- Comment #10 from Vladimir Panteleev <thecybershadow at gmail.com> ---
(In reply to Martin Nowak from comment #9)
> Can you guys please provide exact instructions to reproduce a bug.

I can reproduce this just fine with Digger, as explained in the original
report.

Here is a script that does all the work:

--------------------------------------------------------------
#!/bin/bash

set -eu

cat << EOF > test.d
import std.stdio;

void main()
{
    writeln("Hello, world!");
}
EOF

rm -f results.txt

test() {
    digger build $1
    mkdir -p $1
    cd $1
    ~/Digger/result/bin/dmd -O -inline -release ../test.d
    cd ..
    ls -al $1/test >> results.txt
}

test e2dc1a631d1b0bd3eb751c6b7f6d70cfdc5b40c1
test f1bf3d208546728d433de7b3d53631497846b117

cat results.txt
--------------------------------------------------------------

I just confirmed the results, and verified that this is not due to a corrupted
Digger cache or change in build environment.

I can provide an account on the machine this is reproducible on if you like.

--


More information about the Digitalmars-d-bugs mailing list