Page 1 of 1

compiling GMP with arm-none-eabi-gcc

Posted: Mon Jun 07, 2021 2:12 pm
by zephyz
Hi there,

I'm trying to target the GBA for a programming language I'm working on. I'm outputting c code so I was hoping I could compile the c output using arm-none-eabi-gcc. However this code depends on gmp.h I was hoping I could use arm-none-eabi-gcc to compile gmp for the platform as well but I don't know how do to that. Any pointers?

ps: I realise that might be a terrible idea because of the limitations of the platform, if you have a better idea I'm interested in hearing your suggestions!

Re: compiling GMP with arm-none-eabi-gcc

Posted: Mon Jun 07, 2021 6:07 pm
by WinterMute
I'm not sure that a 16MHz processor with no FPU & 256K of RAM to play with is going to manage anything useful with gmp. I would suggest not depending on it for code that's targeting a GBA tbh. What do you need multi-precision arithmetic for?