[cvsnt] Static linking of MFC dlls

Jerzy Kaczorowski jerzyk at wndtabs.com
Tue Jun 15 21:27:24 BST 2004


Tony,

> You end up with a huge executable file, so it doesn't help - the more
> files that use MFC the more the overhead gets.. it doesn't take many
> before it's not worth it.

Since CVSNT is not MFC-intensive and it probably won't be the linker will
trim the size quite a lot.

There are two projects that use MFC. I made a quick check and the math is
currently as follows:
1. cvsagent - 40960B - statically linked: 172032B. Difference: 131072B
2. cvsntcpl - 61952B - statically linked: 222720B. Difference: 160768B

Two differences together: 291840B

Now, two MFC dlls: 1047552B + 1060864B = 2108416B

So, between dynamic and static linking we have 1816576B difference.

That is  nearly 1.8MB more and it would make CVSNT installer half the
current size (and very suitable to include within WinCvs installer,
naturally ;)

Best Regards,
Jerzy

----- Original Message ----- 
From: "Tony Hoyle" <tmh at nodomain.org>
Newsgroups: support.cvsnt
To: <cvsnt at cvsnt.org>
Sent: Tuesday, June 15, 2004 0:09
Subject: Re: [cvsnt] Re: bug in cvs(nt)?


> Jerzy Kaczorowski wrote:
> > Where does the secur32_nt4.dll and secur32_w98.dll originate from? Is it
in
> > some distributable package that could be downloaded on some MS site?
>
> They're in the sysfiles.zip on the cvsnt website.  They originally come
> from the microsoft DsClient installer, but I don't need the whole of
> Active Directory just the secur32 wrapper is enough (which has no
> dependencies so is OK on it's own).
>
> >>2.5MB of that is C & MFC runtimes (2MB alone is the two MFC DLLs).
> >>Only the unicode one is needed except for cvsagent, which for some
reason
> >>isn't unicode...  I prefer to install the full set just in case it
upsets
> >>anything but if space is tight I suppose you could arrange to drop one
of
> >
> > them.
> >
> > Is that possible to drop MFC dependencies all together? Link it
statically
> > perhaps?
> >
> You end up with a huge executable file, so it doesn't help - the more
> files that use MFC the more the overhead gets.. it doesn't take many
> before it's not worth it.
>
> I could look at producing an installer without the runtimes... it'd be
> pretty small I'd expect.  For upgrades that's all that's needed really
> as I'm not anticipating any VC/MFC updates for a little while.
>
> Tony
> _______________________________________________
> cvsnt mailing list
> cvsnt at cvsnt.org
> http://www.cvsnt.org/cgi-bin/mailman/listinfo/cvsnt
>
>





More information about the cvsnt mailing list