Skip to content
This repository has been archived by the owner on Apr 10, 2024. It is now read-only.

Commit

Permalink
Update README
Browse files Browse the repository at this point in the history
  • Loading branch information
adriweb authored Apr 10, 2024
1 parent a3e4c69 commit 1f0a5e0
Showing 1 changed file with 1 addition and 21 deletions.
22 changes: 1 addition & 21 deletions README
Original file line number Diff line number Diff line change
@@ -1,21 +1 @@

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
export CFLAGS=-m32
./configure ABI=32
make clean
(export CFLAGS='-Os -s PRECISE_I32_MUL=1' does not work)
EMCONFIGURE_JS=1 emconfigure ./configure --build=none --host=none

Edit config.h and disable HAVE_QUAD_T, HAVE_OBSTACK_VPRINTF

Run make using something like

emmake make

This repo is obsolete - WASM is now used upstream on https://xcas.univ-grenoble-alpes.fr/xcasjs/ and someone contributed a much more finished and (more) modern UI :)

0 comments on commit 1f0a5e0

Please sign in to comment.