Hey guys, I am working on making Elliptic Curve Cryptography El-Gamal in 8051 MCU using Keil uvision 4. I want to make it 128 bit, so I need to use GMP library. However, to use GMP I usually download it in mingw-get-setup first, so I think it won't run if I just copy the gmp.h to my project in Keil.
My questions are :
1. how can I use gmp in 8051 using Keil?
2. Or should I compile it first in gcc, then just download the hex file to 8051? How to program the register in gcc?
Thanks for your attention :D
Best regards
The concept is trivial - even easier than using decimal numbers.
But the amount of code grows. And the amount of processor instructions needed to produce one output result grows.
So a 8051 will not be a speed demon. And this is a situation where it helps to have more than one index register for the memory accesses. C = A+B is short when everything fits in a register. But with big numbers, each number is an array of bytes.
But the compiler is up to the task, if the developer is up to the task and the code and data spaces are large enough.