any tool can shrink DLL?

O

oyster

For many external lib, python( and www.freebasic.net) use only the DLL
version, whcih is very big often if we want to release our program.
So, is there such a tool that can scan a DLL then strip the unused
function's code out, so yields a small working DLL?

for example, in my program I use only 'compress' function in zlib.dll, then
1. I write a list file in which I emurate the function that I used
[code func.lst]
compress
[/code]

2. run the application
Code:
shrink zlib.dll func.lst
[code]
the shrink scans zlib.dll, dumps function 'compress' and all function
code on which 'compress' rely, and at last writes tiny-zlib.dll

BTW, I know why there is DLL.
BTW2, forget upx and so on, they lead to obvious speed down in my experiment
 
M

Miki

Hello,
So, is there such a tool that can scan a DLL then strip the unused
function's code out, so yields a small working DLL?
I don't think a utility from the outside will know about unused code
in a DLL? Usually the compiler is the one doing dead code elimination.

The only thing that comes to mind is "strip" that removes strings from
executables.

As for UPX, does the slowdown really matter?

HTH,
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,012
Latest member
RoxanneDzm

Latest Threads

Top