Fortran/C filter for gmp

Décio Luiz Gazzoni Filho decio at decpp.net
Thu Apr 15 04:30:31 CEST 2004


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Seeing as you haven't got any responses, I'll propose my own, fairly 
reasonable solution (for C programs), which is to use the GMP C++ class 
library. That way you only need to change the datatype declarations, as C++ 
operator overloading mechanism (and GMP's class library) does the rest. And 
the code is fairly efficient too. Beware, however, that some of the more 
advanced optimizations that a compiler can perform on arithmetic expressions 
involving primitive types (int, double, etc.) will not be performed here, 
AFAIK.

Décio

On Wednesday 14 April 2004 15:06, TPCnospam at mklab.ph.rhul.ac.uk wrote:
> This seems an obvious question but I can't find any mention in the list
> archives or web/Usenet. Q: Are there any filter programs which will read
> 'standard' C or better still Fortran code and produce C O/P with the all
> occurrences of at least the 4 basic arithmetic operators converted to gmp
> functions calls?
>
> Thanks
> Tom Crane.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)

iD8DBQFAffPOFXvAfvngkOIRAnJDAJ9m7Xwrb9ur9DF70Q8DktWchWAn4gCdE9Zx
r+3agPSoofE/io2oQQRWRog=
=STpV
-----END PGP SIGNATURE-----


More information about the gmp-discuss mailing list