[Botan-devel] New branch net.randombit.botan.modularized
lloyd at randombit.net
Tue Sep 30 12:41:37 EDT 2008
On Sun, Sep 28, 2008 at 09:58:53PM -0400, Jack Lloyd wrote:
> I'm at the point now where I'm definitely feeling this branch is (if
> still a bit buggy/disorganized/incomplete compared to where I want it)
> a vast improvment over the old completely flat src + include
> directories. It makes it much more clear what depends on what, and
> allows much better control over what gets built (though disabling big
> things like the filter system doesn't work quite right yet, it is not
> handling disabling all the dependencies properly at the moment).
And now ~45 hours and 165 checkins to the branch later, I'm feeling
like it is at the least handling everything configure.pl does on
mainline (for a while asm for BigInt was not working, but that started
working late last night) and is a much better organization than before
(hard to get much worse).
There is certainly additional work along these lines, mostly with
regards to removing dependencies and generally decoupling modules from
each other (for instance right now, though you can disable
Nyberg-Rueppel or Rabin-Williams, about half the code needed for these
algorithms will still get built due to dependencies by other code).
However it is overall pretty nice.
Binary sizes for Botan shared object (libbotan-1.7.14.so) compiled on
my Core2 (Linux/2.6, GCC 4.3.1), sizes using du -k:
Configured with default modules:
1696 -Os stripped
2268 -O2 stripped
Configured with SHA, AES, DSA, RSA, and a few other things but most algorithms removed using
904 -Os stripped
1248 -O2 stripped
It is not yet possible to disable the public key code entirely, but it
will be a goal going forward since that might be useful in some
contexts (and generally speaking, decoupling different parts of the
library seems a good move - that is one thing this branch has made
much easier, since it is easier to logically group code when it can
also be physically grouped into directories - yet another case of
limitations of the tools limiting the thoughts one has).
I have only recieved one comment on the branch, which was offlist and
positive. In the absence of other commentary I'm probably going to
merge it to mainline and do a release later. Current branch head has
been tested with GCC on Windows/x86, Linux/x86-64, and Linux/ppc64,
Intel C++ on Linux/x86-64, and Visual C++ 2008 on Windows/x86.
Note that configure.pl now uses the perl5 File::Find module. AFAIK
that has been included since 5.0, but I have only tested the build
with Perl v5.8 and 5.10.
More information about the botan-devel