Profiling DLL/LIB Bloat

前端 未结 8 2163
故里飘歌
故里飘歌 2020-12-29 00:46

I\'ve inherited a fairly large C++ project in VS2005 which compiles to a DLL of about 5MB. I\'d like to cut down the size of the library so it loads faster over the network

8条回答
  •  悲哀的现实
    2020-12-29 01:12

    If your DLL is this big because it's exporting C++ function with exceptionally long mangled names, an alternative is to use a .DEF file to export the functions by ordinal, without name (using NONAME in the .DEF file). Somewhat brittle, but it reduces the DLL size, EXE size and load times.

    See e.g. http://home.hiwaay.net/~georgech/WhitePapers/Exporting/Exp.htm

提交回复
热议问题