On Thu, 2004-04-29 at 22:07, Jonathan Arnold wrote: > When I include the Crypto++ code that I posted yesterday (which merely > figures a SHA digest and checks an RSA value), my application size > goes from 1.5mb
Thats pretty big to begin with. Are you using the -static flag? Or an optimisation that simply bloats the executable (the -mcpu=pentium4 argument to g++ 3.2 seems to increase the size of an executable by a factor of about 10 sometimes!). > to nearly 6mb in size. I am using RedHat 7.4 There is no such RedHat release as 7.4. Sorry, I'm pedantic ;-) > with > gcc 2.96. Is there some magical flag I should use or does libcrypt > really need 5Mb to do its work? I just checked and the .a lib is > 46mb, which seems pretty big too. NOTE: The crypto++ (5.1 anyway) library is not a shared library (.so). I am hoping Wei Dai in the future will release it as one though :-) -- James Vanns BSc (Hons) MCP Linux Systems Administrator Senior Software Engineer (Linux / C & C++) Canterbury Christ Church University College Public Key: http://pgp.mit.edu:11371/pks/lookup?op=get&search=0x24045370
