[RFC/POC] Static Math Library Binding#542
[RFC/POC] Static Math Library Binding#542pattop wants to merge 1 commit intolibtom:developfrom pattop:static_math
Conversation
|
I like the idea a lot, but we'd have to work a bit more on that! FYI I already had a patch locally which renamed all You also already added the missing direct invocations of IMO we should have two separate builds of ltc, dynamic and static MPI provider. Either you build one or the other. I have to think a bit more about how to accomplish this ... something in this area maybe? First we add naming is definitely not optimal yet and I'm not sure whether this is such a good idea but it could work ... and this could be done for all MPI providers in the same fashion ... or did I overlook something? maybe @minad has a good idea? |
|
Sorry I haven't been able to dedicate any more time to this yet. I haven't forgotten about it though! |
|
Considering that all |
Hi,
this is a very rough proof of concept to support binding math libraries statically. The primary motivation for this is building for embedded systems with LTO enabled. When using LTO static bindings allow the compiler to remove many unused code paths and thereby reduce code size.
This patch is by no means complete and serves merely as a discussion point to establish whether LibTomCrypt is open to merge support for something like this and how it might look.
The patch does build & link with static support for libtommath only. Dynamic support for all libraries should still work too.
A few things to consider:
Patrick