There are key standalone algorithms, particularly those related to cryptography, such as AES, RSA, SHA1, etc., which you can find on the Internet on the Internet.
Some of them are written as nice and portable clean C.
Some of them are recorded quickly - often with macros and explicit expansions.
As far as I can tell, no one is trying to be particularly super-small, so I put up with writing my own - explicitly decrypted AES128 and SHA1 for ARM THUMB2. (I checked by compiling everything that I can find for my target machine with GCC with -Os and -mthumb, etc.)
What patterns and tricks can I use for this?
Are there compilers / tools capable of folding code?
source
share