Hi EricDOS,
How are you measuring the code size? If you are just looking at the shared DLL size that has overhead for symbols, which aren't there in a static build. Also most of the size optimization occurs at link-time with the final application. Try using --disable-shared and use the static library with your application.
Can you tell us more about the target and application? We have many options for tuning, but it helps to know the CPU and RTOS.
The fast math library should be about the same size, but it uses stack for math variables instead of heap. The fast math library also support assembly optimizations.
You might also check our --enable-leantls option in ./configure.ac, which has many additional options for reducing code size. See https://github.com/wolfSSL/wolfssl/blob … re.ac#L637
You can find a good reference document here:
https://github.com/wolfSSL/wolfssl/tree … ng-options
If you are looking to boost performance you can try our `--enable-sp=small` option, which provides optimized code for specific keys and curve. This will not reduce code size.
Thanks,
David Garske, wolfSSL