Application size seems very large

Questions and postings pertaining to the development of ImageMagick, feature enhancements, and ImageMagick internals. ImageMagick source code and algorithms are discussed here. Usage questions which are too arcane for the normal user list should also be posted here.
Post Reply
Task_

Application size seems very large

Post by Task_ »

Is it normal to have a large application file when statically linking even if I am creating a basic program? I thought unreferenced functions where optimized out on release builds. I have a 3.3mb exe that is basically just a starting point dialog.
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: Application size seems very large

Post by magick »

Your best hope for small executables is to link dynamically. ImageMagick calls hundreds of methods as part of its startup including all coder modules so static linking dependencies are quite large as you have experienced. You can of course trim the size by eliminating the calls from magick/static.c of any coder you are not interested in using.
Post Reply