Skip to main content
VMedi.0
Visitor II
Aug 15, 2019 6:56 PM UTC
Question

Is there any way to implement BigNumbers on a STM32F4?

I need to implement some BigNumber math on an STM32F4 (bn.h, conv.h, modular.h). I would like to use functions such as W8_to_Big(), StAllocBig(), and InitBig(). Unfortunately I cannot find any information on how to use these functions. Are there any examples or documentation that I could use to get a better understanding of these functions? Any help is appreciated!

This topic has been closed for replies.

3 replies

Pavel A.
Aug 15, 2019 9:14 PM UTC

Try Micro Python, it has big numbers like the normal Python. And it runs on F4.

-- pa

Tesla DeLorean
Guru
Aug 15, 2019 9:31 PM UTC

Perhaps stop couching it in terms of STM32F4, and review ARM support generally in the Cortex-Mx family, and embedded systems. Check for any porting guides.

Tips, Buy me a coffee, or three.. PayPal Venmo (See Profile) Up vote any posts that you find helpful, it shows what's working..
After Forever
Senior III
Aug 16, 2019 7:50 AM UTC

I'm not sure which library you are referring to (bn.h, conv.h, modular.h), but you can try to use tiny-bignum-c - https://github.com/kokke/tiny-bignum-c

or even GNU GMP (if you want something more advanced) - https://gmplib.org/