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 ♦♦
11.8k316358420

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.

link

answered Oct 22 '14 at 10:32

chilkat's gravatar image

chilkat ♦♦
11.8k316358420

The simple email example shown in the following link:

http://www.example-code.com/vcpp/SimpleSendEmail.asp

produces about 1.8 MB of executable compiled in release mode under VS 2013. The optimization for size is also turned on and no debugging information is included.

Is this an expected size? or are there additional settings to reduce the size?

Thanks!

link

answered Dec 23 '15 at 00:44

Muler's gravatar image

Muler
1

Your answer
toggle preview

Follow this question

By Email:

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

By RSS:

Answers

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

Tags:

×65
×12
×11
×7

Asked: Oct 22 '14 at 10:25

Seen: 2,871 times

Last updated: Dec 23 '15 at 00:44

powered by OSQA