Welcome!

By registering with us, you'll be able to discuss, share and private message with other members of our community.

SignUp Now!

Plugin question for Charles Dye

May
13,828
211
Charles. How do you make your DLLs small?

With static runtime linking and DllMain, I can't get them below about 100K. If I use my own entry point and don't use any C library stuff (usually hard to do) I can make them as small as 7K.
 
Oh, I cheat shamelessly.... I compress them with UPX. Typically shrinks them by about 50%.

Also, most of them are made with a pretty old version of Visual Studio, so there's that.
 
Duh! I saw all that when I built your elevated plugin. And then I remembered that we went through this before (thanks for not reminding me). UPX and an old Visual Studio explains it all.
 
I was working on a barebones version of my 4WT plugin (no exports except the three plugin-related ones). Its only purpose is to kludge around the popup location problem. In addition to using a custom entry point, disabling buffer overrun check and merging .pdata->.data brought the size down to 4608 bytes. That might be the limit. I tried more section merging to no avail.
 
Back
Top