small.html   [plain text]


<!--$Id: small.so,v 10.11 2007/06/13 18:56:05 bostic Exp $-->
<!--Copyright (c) 1997,2008 Oracle.  All rights reserved.-->
<!--See the file LICENSE for redistribution information.-->
<html>
<head>
<title>Berkeley DB Reference Guide: Building a small memory footprint library</title>
<meta name="description" content="Berkeley DB: An embedded database programmatic toolkit.">
<meta name="keywords" content="embedded,database,programmatic,toolkit,btree,hash,hashing,transaction,transactions,locking,logging,access method,access methods,Java,C,C++">
</head>
<body bgcolor=white>
<table width="100%"><tr valign=top>
<td><b><dl><dt>Berkeley DB Reference Guide:<dd>Building Berkeley DB for UNIX/POSIX systems</dl></b></td>
<td align=right><a href="../build_unix/conf.html"><img src="../../images/prev.gif" alt="Prev"></a><a href="../toc.html"><img src="../../images/ref.gif" alt="Ref"></a><a href="../build_unix/flags.html"><img src="../../images/next.gif" alt="Next"></a>
</td></tr></table>
<p align=center><b>Building a small memory footprint library</b></p>
<p>There are a set of configuration options to assist you in building a
small memory footprint library.  These configuration options turn off
specific functionality in the Berkeley DB library, reducing the code size.
These configuration options include:</p>
<br>
<b><a name="--disable-cryptography">--disable-cryptography</a></b><ul compact><li>To build Berkeley DB without support for cryptography, enter
--disable-cryptography as an argument to configure.</ul>
<b><a name="--disable-hash">--disable-hash</a></b><ul compact><li>To build Berkeley DB without support for the Hash access method, enter
--disable-hash as an argument to configure.</ul>
<b><a name="--disable-queue">--disable-queue</a></b><ul compact><li>To build Berkeley DB without support for the Queue access method, enter
--disable-queue as an argument to configure.</ul>
<b><a name="--disable-replication">--disable-replication</a></b><ul compact><li>To build Berkeley DB without support for the database environment replication,
enter --disable-replication as an argument to configure.</ul>
<b><a name="--disable-statistics">--disable-statistics</a></b><ul compact><li>To build Berkeley DB without support for the statistics interfaces, enter
--disable-statistics as an argument to configure.</ul>
<b><a name="--disable-verify">--disable-verify</a></b><ul compact><li>To build Berkeley DB without support for database verification, enter
--disable-verify as an argument to configure.</ul>
<b><a name="--enable-smallbuild">--enable-smallbuild</a></b><ul compact><li>Equivalent to individually specifying --disable-cryptography,
--disable-hash, --disable-queue, --disable-replication,
--disable-statistics and --disable-verify.  In addition, when compiling
building with the GNU gcc compiler, the --enable-smallbuild option uses
the -Os compiler build flag instead of the default -O3.</ul>
<br>
<p>The following configuration options will increase the size of the Berkeley DB
library dramatically and are only useful when debugging applications:</p>
<br>
<b><a href="../../ref/build_unix/conf.html#--enable-debug">--enable-debug</a></b><ul compact><li>Build Berkeley DB with symbols for debugging.</ul>
<b><a href="../../ref/build_unix/conf.html#--enable-debug_rop">--enable-debug_rop</a></b><ul compact><li>Build Berkeley DB with read-operation logging.</ul>
<b><a href="../../ref/build_unix/conf.html#--enable-debug_wop">--enable-debug_wop</a></b><ul compact><li>Build Berkeley DB with write-operation logging.</ul>
<b><a href="../../ref/build_unix/conf.html#--enable-diagnostic">--enable-diagnostic</a></b><ul compact><li>Build Berkeley DB with run-time debugging checks.</ul>
<br>
<p>In addition, static libraries are usually smaller than shared libraries.
By default Berkeley DB will build both shared and static libraries.  To build
only a static library, configure Berkeley DB with the
<a href="../../ref/build_unix/conf.html">--disable-shared</a> option.</p>
<p>The size of the Berkeley DB library varies depending on the compiler, machine
architecture, and configuration options.  As an estimate, production
Berkeley DB libraries built with GNU gcc version 3.X compilers have footprints
in the range of 400KB to 900KB on 32-bit x86 architectures, and in the
range of 500KB to 1MB on 64-bit x86 architectures.</p>
<p>For assistance in further reducing the size of the Berkeley DB library, or in
building small memory footprint libraries on other systems, please
contact Berkeley DB support.</p>
<table width="100%"><tr><td><br></td><td align=right><a href="../build_unix/conf.html"><img src="../../images/prev.gif" alt="Prev"></a><a href="../toc.html"><img src="../../images/ref.gif" alt="Ref"></a><a href="../build_unix/flags.html"><img src="../../images/next.gif" alt="Next"></a>
</td></tr></table>
<p><font size=1>Copyright (c) 1996,2008 Oracle.  All rights reserved.</font>
</body>
</html>