AW: WG: AW: use gmp on microcontroller freescale coldfire
Drößler Tobias
Droessler.Tobias at ik-elektronik.com
Mon Jun 24 08:43:31 CEST 2013
> We don't provide any configuration options for making GMP that small.
We usually create a binary file, which will be programmed /flashed and holds the whole program code .
Is it not possible (or default set) that the linker only places used (called) code form the lib inside the binary file ?
We still include stdio , stdlib - I am not sure if this is a versions known from the desktop pc , or if it is a adapted one for the controller.
"printf", by the way, is not used because we have no display / screen.
regards Tobias
-----Ursprüngliche Nachricht-----
Von: tg at gmplib.org [mailto:tg at gmplib.org]
Gesendet: Samstag, 22. Juni 2013 10:21
An: Drößler Tobias
Cc: gmp-discuss at gmplib.org
Betreff: Re: WG: AW: use gmp on microcontroller freescale coldfire
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.
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.
--
Torbjörn
More information about the gmp-discuss
mailing list