super-space-optimized code
Posted
by Will
on Stack Overflow
See other posts from Stack Overflow
or by Will
Published on 2010-06-03T09:10:03Z
Indexed on
2010/06/03
9:14 UTC
Read the original article
Hit count: 160
There are key self-contained algorithms - particularly cryptography-related such as AES, RSA, SHA1 etc - which you can find many implementations of for free on the internet.
Some are written to be nice and portable clean C.
Some are written to be fast - often with macros, and explicit unrolling.
As far as I can tell, none are trying to be especially super-small - so I'm resigned to writing my own - explicitly AES128 decryption and SHA1 for ARM THUMB2.
What patterns and tricks can I use to do so?
Are there compilers/tools that can roll-up code?
© Stack Overflow or respective owner