WG: AW: use gmp on microcontroller freescale coldfire
tg at gmplib.org
Sat Jun 22 10:20:48 CEST 2013
Drößler Tobias <Droessler.Tobias at ik-elektronik.com> writes:
We have a 32 bit "system":) /CPU - and 128 KiB Flash for execution
code. And I think I need about 5 real operations from mpz ( add, mul,
mpz_invert, mod, compare (, set, clear)), and not the hole
functionality of the lib. So if only these functions (and
dependencies) linked to our execution -bin file, it should not fill
more than 32 kB.
We don't provide any configuration options for making GMP that small.
There is always mini-gmp, a part of GMP 5.1 releases, which in itself
(without lib deps) is a bit less than 32 KiB object code.
Unfortunately, mini-gmp does not currently support incremental linking.
I suspect you'll find it challenging to fit the C library's printf and
its dependencies in 128 KiB.
More information about the gmp-discuss