Skip to content

mir shared object size #304

Answered by vnmakarov
fabubaker asked this question in Q&A
Nov 9, 2022 · 1 comments · 1 reply
Discussion options

You must be logged in to vote

Thank you for interesting in MIR-project.

Out of curiosity, I wanted to check what the shared object size is for MIR (excluding c2mir).

When building using make, the size is 1.5 MB. When building using make debug, the size is 915 KB.

I have a couple of questions:

1. Any idea why the shared object is smaller when built with `make debug`?

The both versions contain debug information. Non-debug version uses -O3. Very aggressive optimizations (including inlining) are used in this case and this results in bigger code size and bigger debug information.

2. Is it possible to get a smaller shared object size? I tried compiling with `-Os`, but that did not help.
   Under "MIR project competitors…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@fabubaker
Comment options

Answer selected by fabubaker
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants