On 3/26/2011 12:27 PM, Kagamin wrote:
----
gdc -v2 test4.d -o test4.exe
----
dir test4*
----
26.03.2011  19:17                78 test4.d
26.03.2011  19:18         2Â 835Â 758 test4.exe
                2 File(s)      2Â 835Â 836 bytes
Apparently, I used core.std.stdio. When I retested using std.stdio I got similar numbers.

About 2 megs can be removed by stripping libgphobos2.a. I'll start doing that now that I know it's possible to separate debug information.

nm test4.exe | grep ModuleInfo

Run for a list of included modules. The best way to tell would be compare outputs with linux.

----
copy test4.d con
----
import std.stdio;
int main()
{
         writeln("hello world");
         return 0;
}
         1 file(s) copied.
----

with
gdc -v2 test4.d -o test4.exe -s
it's 454kb
From the GCC manual.
-s
Remove all symbol table and relocation information from the executable.

It also looks like the AIX issue was related to the linker for the platform and applied to c++ as well.

Reply via email to