This repository has been archived by the owner on Apr 10, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
1 addition
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 :) |