login about faq

We are considering using the Chilkat iOS library for parsing MIME emails. However, the compiled lib seems to amount to approximately extra 12MB on on top of our binary. The offered functionality is suitable for us, but the size is really prohibitive for our app. Is there a way to utilize only the functionality relevant to MIME and have this size significantly reduced?

asked Oct 22 '14 at 10:25

chilkat's gravatar image

chilkat ♦♦

edited Oct 22 '14 at 10:35

When an application links with a C/C++ static library, the linker should only include the library code that is directly or indirectly referenced by the application. The size of a static library is meaningless because what matters is the size of your executable after linking with the library.

This is true unless you link specifically with a linker options that forces the entire contents of the static library to be included in the executable. Xamarin is a case where this happens, and this is why Chilkat provides the static libs for Xamarin in layers, slices, and packs.

Some technologies, such as MIME (which includes S/MIME), can result in a surprisingly large size increase to the executable. This is because there is a LOT of underlying technology involved -- relating to encryption, compression, character encoding, etc.


answered Oct 22 '14 at 10:32

chilkat's gravatar image

chilkat ♦♦

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here



Answers and Comments

Markdown Basics

  • *italic* or __italic__
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported



Asked: Oct 22 '14 at 10:25

Seen: 6,254 times

Last updated: Dec 23 '15 at 00:44

powered by OSQA