android - How to reduce the size of a C++ static library -


i'm developing cross-platform static c++ library , wondering if there build flags reducing size of final mylib.lib , libmylib.a files on each platform (ios, android, windows)?

i understand every single dependency gets pulled build process , file size coming from.

why static library huge?

but shouldn't there way have linker/librarian remove code mylib based on dependency calls made rather theoretically possible?

the linker when building final .executable, seems same rules apply @ library linking level.

overall big problem me because cross-platform library around 500mb windows , around 200mb on ios. oddly, android reasonable 3.5mb.


Comments

Popular posts from this blog

python - Healpy: From Data to Healpix map -

c - Bitwise operation with (signed) enum value -

xslt - Unnest parent nodes by child node -