SQLite Library Footprint
Size Of The SQLite Library
The code space used by the SQLite library depends heavily on the target platform, what compiler and optimization options are used to generate object code, and which optional features of SQLite are included or omitted from the build. This page provides examples of what to expect.
SQLite version 3.7.8 (2011-09-19) is less than 350KiB in size on x86 with -Os and less than 400KiB (409KB) on x64. The -O2 and -O3 builds are larger, presumably due to loop unrolling and function inlining.
Case 1
- SuSE Linux 10.1
- GCC 4.1.0
- SQLite version 3.7.8
- x86 (32-bit)
Optimization Setting |
Size (bytes) |
Run-time (Relative to -O0) |
---|---|---|
-O0 | 529765 | 1.00 |
|