Re: Bloat in Executable

2017-11-18 Thread Petar via Digitalmars-d
On Friday, 17 November 2017 at 18:53:57 UTC, Temtaime wrote: On Thursday, 16 November 2017 at 03:58:38 UTC, Adam D. Ruppe wrote: [...] There is system-wide C library. It is named msvc.dll. TCC uses it producing very small executables.

Re: Bloat in Executable

2017-11-17 Thread Temtaime via Digitalmars-d
On Thursday, 16 November 2017 at 03:58:38 UTC, Adam D. Ruppe wrote: On Thursday, 16 November 2017 at 03:32:26 UTC, codephantom wrote: 23k executable if 32bit (i.e. -m32 ) It is the statically linked C library. Note that if you remove the call to printf, the size is slashed in half. Windows

Re: Bloat in Executable

2017-11-16 Thread Joakim via Digitalmars-d
On Thursday, 16 November 2017 at 03:32:26 UTC, codephantom wrote: // --- module test; import core.stdc.stdio; extern (C) int main() { printf("hello world\n"); return 0; } // --- compiled with dmd v2.077.0, using the

Re: Bloat in Executable

2017-11-15 Thread codephantom via Digitalmars-d
On Thursday, 16 November 2017 at 03:58:38 UTC, Adam D. Ruppe wrote: It is the statically linked C library. Note that if you remove the call to printf, the size is slashed in half. Windows traditionally didn't do a system-wide C lib, but rather the various compiler vendors would do their

Re: Bloat in Executable

2017-11-15 Thread Adam D. Ruppe via Digitalmars-d
On Thursday, 16 November 2017 at 03:32:26 UTC, codephantom wrote: 23k executable if 32bit (i.e. -m32 ) It is the statically linked C library. Note that if you remove the call to printf, the size is slashed in half. Windows traditionally didn't do a system-wide C lib, but rather the various