All Projects → kripken → gmp.js

kripken / gmp.js

Licence: GPL-3.0, LGPL-3.0 licenses found Licenses found GPL-3.0 COPYING LGPL-3.0 COPYING.LIB
A port of the GNU Multiple-Precision Library (GMP), a library for arbitrary precision arithmetic, to JavaScript using Emscripten

Programming Languages

c
50402 projects - #5 most used programming language
assembly
5116 projects
shell
77523 projects
C++
36643 projects - #6 most used programming language
perl
6916 projects
emacs lisp
2029 projects

gmp.js

gmp.js is a port of the GNU Multiple-Precision Library (GMP), a library for arbitrary precision arithmetic, to JavaScript using Emscripten.

GMP website: http://gmplib.org/

Steps to build

  • First run configure and make natively/normally. You will need some of the generated executables. Optionally, also build test.c and see that it works (see instructions inside test.c).

  • Run configure using something like

      EMCONFIGURE_JS=1 emconfigure ./configure ABI=longlong --build=none --host=none
    
  • Edit config.h and disable HAVE_QUAD_T, HAVE_OBSTACK_VPRINTF

  • Run make using something like

      make -j 2
    
  • Run emscripten.sh which will build the main test file, link it, then compile to JavaScript using Emscripten

  • Run the code using something like

      node complete.js 500
    
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].