Compiler: Size of generated executable file

Leandro Lucarella llucax at gmail.com
Tue Jan 12 17:09:01 PST 2010


Walter Bright, el 12 de enero a las 14:48 me escribiste:
> Leandro Lucarella wrote:
> >NOT for everybody. I refuse to download huge programs (unless their size
> >is justified).
> 
> Unfortunately, sizeof(exe + dll) == sizeof(exe) + sizeof(dll)
> 
> You'd only see savings if the user already has the dll installed, or
> if you are shipping multiple exe's.

In Linux, using a distribution, you have a pretty good change that dynamic
libraries are used by more than one program. And there is
typeinfo/template bloat too to analyze in the executables bloat, it's not
just static vs dynamic linking (even when that would be a big step forward
smaller binaries).

> >And when it comes to embedded systems, size *do* matter.
> 
> I know.

Well, I hope then that D sees big binaries as a (low priority) bug then :)

-- 
Leandro Lucarella (AKA luca)                     http://llucax.com.ar/
----------------------------------------------------------------------
GPG Key: 5F5A8D05 (F8CD F9A7 BF00 5431 4145  104C 949E BFB6 5F5A 8D05)
----------------------------------------------------------------------
De las generaciones venideras espero, nada más, que vengan.
	-- Ricardo Vaporeso



More information about the Digitalmars-d mailing list