ICU Charts‎ > ‎

ICU4C Footprint

ICU4C can be configured to different sizes, based on the functionality that is needed. The largest part of ICU is the data for different countries and charset converters, so the easiest way to reduce the size is to use configuration switches to remove data that is not needed by the particular implementation.

For a description of how to reduce the size of ICU4C, see Customizing ICU's DataLibrary. For corresponding information on ICU4J (including sizes), see How to Modularize ICU4J. The Data Library Customizer can also be used to modularize the data for the latest version of ICU.


Here are the sizes of the main data file, icudt30.dll on Windows, when certain configuration files are removed or renamed.

8.17 MB normal
7.98 MB
7.00 MB ... and remove
5.43 MB ... and remove
4.38 MB ... and remove
2.88 MB ... and remove
1.18 MB ... and remove
1.06 MB ... and remove

Here are the sizes of the remaining items that are not easy to remove without editing makefiles, but which can be done if necessary.

354 KB (363,358 bytes) UCA collation ( + + coll/*.res)
341 KB (349,258 bytes) + + +
288 KB (295,024 bytes) Break iteration (*.brk)
34.3 KB (35,140 bytes) root.res + res_index.res
27.3 KB (28,030 bytes)
20.2 KB (20,714 bytes) uidna.spp
5.06 KB (5,188 bytes) ibm-1047 + ibm-37


If you would like to see other code changes that can be done to make ICU4C smaller, please read the Packaging ICU section of the User's Guide.

If you are only using small portions of ICU, you can link against the static form of the ICU libraries. You need to make sure that you specify the --enable-static configure option when building ICU. Statically linking against ICU will allow the linker to only bring in the code that is being used by your application, but it will make it more difficult to upgrade or share your copy of ICU that you provide with your application.