any tool can shrink DLL?

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • oyster

    any tool can shrink DLL?

    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
  • Miki

    #2
    Re: any tool can shrink DLL?

    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,
    --
    Miki <miki.tebeka@gm ail.com>
    If it won't be simple, it simply won't be. [Hire me, source code]

    Comment

    Working...