About Me
Background
Policy Analysis
Organisations
Cryptography
Technology
Cryptography
Computing
Mathematics
Papers

NO2ID - Stop ID cards and the database state

Building GMP and MPFR with Microsoft Visual Studio 2008 and YASM

1. Updated 13th March
2. Updated 14th March
3. Updated 15th June
4. Updated 6th November 2002
5. Updated 1st July 2003
6. Updated 5th August 2003
7. Updated 11th May 2004
8. Updated 16th August 2004
9. Updated 2nd September 2004
10. Updated 21st September (GMP and MPFR DLL and static library builds for VC6 and VC7.1)
11. Updated on 10th March 2005 to use GMP 4.1.4 and MPFR 2.1.1
12. Updated 18th January 2006 for GMP 4.1.4, MPFR 2.2.0 and Visual Studio 2005
13. Updated 27th March 2006 for GMP 4.2, MPFR 2.2.0 and Visual Studio 2005
14. Updated 13th April to remove a bug in the 32-bit build of GMP 4.2
15. Updated 24th May to move from GMP-4.2 to GMP-4.2.1 and to add build projects for the tests.
16. Updated 8th December 2006 to improve and simplify the build process
17. Updated 14th December 2006 to add a build project for VC++ Express
18. Updated on 19th September 2007 for building GMP 4.2.2.and MPFR 2.3.0
19. Updated on 1st February 2008 for building GMP 4.2.2.and MPFR 2.3.1 with Microsoft Visual Studio 2008  
20. Updated on 12th April to add a Python program to convert build files for VC++ Express 2008
21 Updated on 16th April to correct structured exception handling (SEH) code in AMD64 assembler
22. Updated on 8th May to add Microsoft intrinsic support and add a port of Jason Worth Martin's Intel64 Core2 code

The files provided here allow both GMP and MPFR to be built as native Windows applications using Visual Studio 2008 and YASM

Project files are provided for building GMP and MPFR for both 32-bit (x86) and 64-bit (x64) Windows versions using generic C code without assembler support.  In addition there is assembler code support for the 32-bit Pentium 64-bit AMD family architectures using the YASM assembler.  The AMD64 assembler version running on an Athlon 4800 X2 achieves a GMPBENCH result of 8408.

This zip archive contains the files need to build GMP 4.2.2.  The files in this zip archive are used to build MPFR 2.3.1.  These versions also build with the Intel compiler after conversion to an Intel build configuration.  This distribution now contains an experimental Python program to convert these build files into those needed by VC++ Express 2008.  They can also be converted to work with Visual Studio 2005.

These archives contain all the files that have to be changed and/or added to the standard GMP and MPFR packages (descriptions of the build processes involved are contained in the archive).   A recent version of YASM (r1438 or later) is needed for building GMP 4.2. 

Acknowledgements

My thanks go to:

  1. The GMP team for making their library available.
  2. Patrick Pelisser, Vincent Lefevre and Paul Zimmermann (the MPFR team) for making their library available and for helping its Windows users.
  3. Sam Krasnik and Mike Loehr for help with earlier versions of these build projects.
  4. The Intel compiler support team for helping with some conversion issues.

Back to Brian Gladman's Home Page   This page has been accessed Hit Counter times since 19th September 2007.