Windows 11/64bit native Visual C/C++ builds with assembly

ingo.kubbilun at gmail.com ingo.kubbilun at gmail.com
Sat Jun 27 16:54:58 CEST 2026


Dear libgmp community,

 

I have established a new github repo
(https://github.com/developer-corner/win64-gmp-mpfr) for the libgmp (and
libmpfr) to perform native Windows builds of the libraries using MS Visual
C/C++ 2026.

The System V AMD64 ABI was fully converted to the MS AMD64 ABI for all
assembler sources of libgmp. The contribution comes as a folder 'win64',
which has to be injected into the standard library source tree.

An NMAKE Makefile builds the stuff (static or dynamic library, test suite,
tuneup). A Win32 console test runner executes all tests.

 

All you need is MS Visual C/C++ (possibly the Community Edition) and a
UNIX-style patch tool (e.g. the one that comes with git for Windows).

 

Created and tested with libgmp 6.3.0 and libmpfr 4.2.2 on an Intel Core i9,
an AMD Ryzen 9, and an Aarch64/ARM64 (Snapdragon-X) CPU. This is for the
Windows 11/64bit platform (X86-64 and ARM64) only.

 

Cheers,

 

Ingo

 



More information about the gmp-devel mailing list