pggimeno@wanadoo.es writes: > > Note that the calling convention may depend on how GMP is compiled > (I'm not sure if it may be varied or what it is if not so) but you may > need to use one of the keywords "cdecl" or "stdcall" in the external > declarations. It should be cdecl, certainly the assembler code is all written only for cdecl. There's a gmp unit in GNU Pascal, if that helps maybe as a starting point.