Compiler: Size of generated executable file

Adam D. Ruppe destructionator at gmail.com
Tue Jan 12 15:29:36 PST 2010


On Tue, Jan 12, 2010 at 11:12:33PM +0000, retard wrote:
> If they all used static linking, I'm afraid I would have to 
> buy another 32 GB ssd disk only for the binaries.

Yes, for large numbers of application, shared libraries save a lot of space.

Though, what I was saying is if you have only one application using the
library, static linking actually saves space. A shared lib needs to keep
functions around just in case - a static link doesn't.

I'm generally for static linking anything that isn't part of the base OS
install, just to ease the process for end users. I'd ideally like to see
a statically linked application that is also small - improvements to the
compiler and linker still have some potential here.

-- 
Adam D. Ruppe
http://arsdnet.net



More information about the Digitalmars-d mailing list