Subject: | DLLs not stripped under Windows |
Date: | Mon, 6 Oct 2014 11:37:52 +0000 |
To: | "bug-Alien-wxWidgets [...] rt.cpan.org" <bug-Alien-wxWidgets [...] rt.cpan.org> |
From: | "Neubauer, Ralf" <ralf.neubauer [...] wido.bv.aok.de> |
Hi,
the auto-built libs and DLLs under Windows are very big:
c:\>dir C:\strawberry5.18.1.1-32\perl\site\lib\Alien\wxWidgets\msw_3_0_0_uni_gcc_3_4\lib
Volume in Laufwerk C: hat keine Bezeichnung.
Volumeseriennummer: 8666-333F
Verzeichnis von C:\strawberry5.18.1.1-32\perl\site\lib\Alien\wxWidgets\msw_3_0_0_uni_gcc_3_4\lib
26.06.2014 19:20 <DIR> .
26.06.2014 19:20 <DIR> ..
26.06.2014 19:20 579 build.cfg
27.05.2013 01:58 95.232 libgcc_s_sjlj-1.dll
27.05.2013 01:58 860.160 libstdc++-6.dll
26.06.2014 19:04 4.546.054 libwxbase30u.a
26.06.2014 19:04 421.148 libwxbase30u_net.a
26.06.2014 19:15 141.770 libwxbase30u_xml.a
26.06.2014 19:00 202.080 libwxexpat.a
26.06.2014 19:00 147.598 libwxjpeg.a
26.06.2014 19:14 3.829.006 libwxmsw30u_adv.a
26.06.2014 19:17 1.209.486 libwxmsw30u_aui.a
26.06.2014 19:12 11.270.024 libwxmsw30u_core.a
26.06.2014 19:19 220.466 libwxmsw30u_gl.a
26.06.2014 19:14 1.774.158 libwxmsw30u_html.a
26.06.2014 19:14 286.924 libwxmsw30u_media.a
26.06.2014 19:18 2.027.510 libwxmsw30u_propgrid.a
26.06.2014 19:17 744.170 libwxmsw30u_ribbon.a
26.06.2014 19:18 2.943.190 libwxmsw30u_richtext.a
26.06.2014 19:19 2.420.332 libwxmsw30u_stc.a
26.06.2014 19:15 726.214 libwxmsw30u_webview.a
26.06.2014 19:16 1.459.622 libwxmsw30u_xrc.a
26.06.2014 19:00 229.324 libwxpng.a
26.06.2014 19:00 80.586 libwxregexu.a
26.06.2014 19:00 457.672 libwxtiff.a
26.06.2014 19:00 85.458 libwxzlib.a
26.06.2014 19:20 <DIR> wx
26.06.2014 19:04 4.318.770 wxbase30u_gcc_custom.dll
26.06.2014 19:04 387.638 wxbase30u_net_gcc_custom.dll
26.06.2014 19:15 350.238 wxbase30u_xml_gcc_custom.dll
26.06.2014 19:14 3.305.276 wxmsw30u_adv_gcc_custom.dll
26.06.2014 19:17 1.176.927 wxmsw30u_aui_gcc_custom.dll
26.06.2014 19:12 11.161.717 wxmsw30u_core_gcc_custom.dll
26.06.2014 19:19 329.623 wxmsw30u_gl_gcc_custom.dll
26.06.2014 19:15 1.709.144 wxmsw30u_html_gcc_custom.dll
26.06.2014 19:14 391.571 wxmsw30u_media_gcc_custom.dll
26.06.2014 19:18 1.740.233 wxmsw30u_propgrid_gcc_custom.dll
26.06.2014 19:17 925.681 wxmsw30u_ribbon_gcc_custom.dll
26.06.2014 19:18 3.022.088 wxmsw30u_richtext_gcc_custom.dll
26.06.2014 19:19 3.111.484 wxmsw30u_stc_gcc_custom.dll
26.06.2014 19:15 512.178 wxmsw30u_webview_gcc_custom.dll
26.06.2014 19:16 2.176.565 wxmsw30u_xrc_gcc_custom.dll
39 Datei(en), 70.797.896 Bytes
The code and data is smaller:
c:\>size C:\strawberry5.18.1.1-32\perl\site\lib\Alien\wxWidgets\msw_3_0_0_uni_gcc_3_4\lib\*.dll
text data bss dec hex filename
90359 1548 1000 92907 16aeb C:\strawberry5.18.1.1-32\perl\site\lib\Alien\wxWidgets\msw_3_0_0_uni_gcc_3_4\lib\libgcc_s_sjlj-1.dll
826328 30120 3744 860192 d2020 C:\strawberry5.18.1.1-32\perl\site\lib\Alien\wxWidgets\msw_3_0_0_uni_gcc_3_4\lib\libstdc++-6.dll
2877788 16644 22432 2916864 2c8200 C:\strawberry5.18.1.1-32\perl\site\lib\Alien\wxWidgets\msw_3_0_0_uni_gcc_3_4\lib\wxbase30u_gcc_custom.dll
143311 11952 5800 161063 27527 C:\strawberry5.18.1.1-32\perl\site\lib\Alien\wxWidgets\msw_3_0_0_uni_gcc_3_4\lib\wxbase30u_net_gcc_custom.dll
195618 6572 968 203158 31996 C:\strawberry5.18.1.1-32\perl\site\lib\Alien\wxWidgets\msw_3_0_0_uni_gcc_3_4\lib\wxbase30u_xml_gcc_custom.dll
1649814 73740 9704 1733258 1a728a C:\strawberry5.18.1.1-32\perl\site\lib\Alien\wxWidgets\msw_3_0_0_uni_gcc_3_4\lib\wxmsw30u_adv_gcc_custom.dll
558741 31920 3688 594349 911ad C:\strawberry5.18.1.1-32\perl\site\lib\Alien\wxWidgets\msw_3_0_0_uni_gcc_3_4\lib\wxmsw30u_aui_gcc_custom.dll
6921746 54948 189068 7165762 6d5742 C:\strawberry5.18.1.1-32\perl\site\lib\Alien\wxWidgets\msw_3_0_0_uni_gcc_3_4\lib\wxmsw30u_core_gcc_custom.dll
94098 18008 1192 113298 1ba92 C:\strawberry5.18.1.1-32\perl\site\lib\Alien\wxWidgets\msw_3_0_0_uni_gcc_3_4\lib\wxmsw30u_gl_gcc_custom.dll
797925 48976 3244 850145 cf8e1 C:\strawberry5.18.1.1-32\perl\site\lib\Alien\wxWidgets\msw_3_0_0_uni_gcc_3_4\lib\wxmsw30u_html_gcc_custom.dll
134885 17316 1132 153333 256f5 C:\strawberry5.18.1.1-32\perl\site\lib\Alien\wxWidgets\msw_3_0_0_uni_gcc_3_4\lib\wxmsw30u_media_gcc_custom.dll
832472 52488 3752 888712 d8f88 C:\strawberry5.18.1.1-32\perl\site\lib\Alien\wxWidgets\msw_3_0_0_uni_gcc_3_4\lib\wxmsw30u_propgrid_gcc_custom.dll
490937 19332 2892 513161 7d489 C:\strawberry5.18.1.1-32\perl\site\lib\Alien\wxWidgets\msw_3_0_0_uni_gcc_3_4\lib\wxmsw30u_ribbon_gcc_custom.dll
1701410 56628 10472 1768510 1afc3e C:\strawberry5.18.1.1-32\perl\site\lib\Alien\wxWidgets\msw_3_0_0_uni_gcc_3_4\lib\wxmsw30u_richtext_gcc_custom.dll
2433715 30048 7336 2471099 25b4bb C:\strawberry5.18.1.1-32\perl\site\lib\Alien\wxWidgets\msw_3_0_0_uni_gcc_3_4\lib\wxmsw30u_stc_gcc_custom.dll
163698 18948 1192 183838 2ce1e C:\strawberry5.18.1.1-32\perl\site\lib\Alien\wxWidgets\msw_3_0_0_uni_gcc_3_4\lib\wxmsw30u_webview_gcc_custom.dll
1003033 59820 6792 1069645 10524d C:\strawberry5.18.1.1-32\perl\site\lib\Alien\wxWidgets\msw_3_0_0_uni_gcc_3_4\lib\wxmsw30u_xrc_gcc_custom.dll
When I create a perl executable with PAR::Packer (using wxpar), the DLLs are included in the executable and make the executable very big. The corresponding Linux libraries and the (old) libraries from http://www.wxperl.co.uk/repository/package.xml which I used with ActivePerl are much smaller.
Is it possible to strip the libraries and DLLs, if I don't want to debug the Wx code?
Ralf Neubauer