On Mar 7, 10:40 am, pierre l <[email protected]> wrote:
> Hi,
>
> I'm using 
> BufferedTransformation<http://www.cryptopp.com/docs/ref/class_buffered_transformation.html>
>  and
> find it to increase my binary size from 200k to 8Mb. Size is very imported
> in my application so this will not do for me.
> I'm only calling 
> GetWord32<http://www.cryptopp.com/docs/ref/class_buffered_transformation.html#a...>
>  and 
> PutWord32<http://www.cryptopp.com/docs/ref/class_buffered_transformation.html#a...>
If working on *nix, you have a few options. If you are working in a
size constrained environment, you have a few options. First, consider
compiling with -Os. Second, add the following to compiler flags
(CXXFLAGS): -fdata-sections, -ffunction-sections, and -fvtable-gc.
Third, adding the following to the linker flags (LDFLAGS): -static, --
gc-sections, -s. Static linking (-static) is important for dead code
removal.

A section has been added to the wiki at 
http://www.cryptopp.com/wiki/Linux#Makefile.

The GCC mailing list is a good source for these sorts of questions.
See, for example, "Removing unused functions/dead code,"
http://gcc.gnu.org/ml/gcc-help/2003-08/msg00128.html.

Jeff

-- 
-- 
You received this message because you are subscribed to the "Crypto++ Users" 
Google Group.
To unsubscribe, send an email to [email protected].
More information about Crypto++ and this group is available at 
http://www.cryptopp.com.
--- 
You received this message because you are subscribed to the Google Groups 
"Crypto++ Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to