GMP Fortran library

Dear friends,

I have to operate with some sums of very large integers. I know there is available a GMP Fortran library but I have never use it. Apparently, you have to link a static library when compiling the original code, but other than that I could not find any documentation about how it is used in Fortran. Do you know some information you can provide me as to how a regular code should be modified to be used along this GMP library?

Many thanks for the help.


I have no advice on GMP use from Fortran, but this might be more suitable for you:

1 Like

A library which recently came up on stack overflow is FMZM.

I don’t know much about it beyond that it’s designed to handle arbitrary precision variables, but it might do what you want.


@themos, @veryreverie, many thanks for your help.