summaryrefslogtreecommitdiff
path: root/INSTALL
diff options
context:
space:
mode:
authorKevin Ryde <user42@zip.com.au>2000-05-14 00:33:00 +0200
committerKevin Ryde <user42@zip.com.au>2000-05-14 00:33:00 +0200
commitee0a7fea740070cb673f50bb6674caa29aa05a3d (patch)
treec4e83843b339f63dd7aa55e523ac55016137f606 /INSTALL
parentd4ad653c5bf9e51324dfcc7dcaa751cdee6104cd (diff)
downloadgmp-ee0a7fea740070cb673f50bb6674caa29aa05a3d.tar.gz
Change MP -> GMP.
Diffstat (limited to 'INSTALL')
-rw-r--r--INSTALL41
1 files changed, 21 insertions, 20 deletions
diff --git a/INSTALL b/INSTALL
index c6864258d..420fc0a27 100644
--- a/INSTALL
+++ b/INSTALL
@@ -7,27 +7,27 @@ These instructions are only for the impatient. Others should read the install
instructions in the manual, gmp.info. Use "info -f gmp.info", or, if you
don't have info, type "C-u C-h i gmp.info" in emacs.
-Here are some brief instructions on how to install MP, and some examples to
-help you get started using MP.
+Here are some brief instructions on how to install GMP, and some examples to
+help you get started using GMP.
-First, you need to compile, and optionally install, MP. Since you're
+First, you need to compile, and optionally install, GMP. Since you're
impatient, try this:
./configure; make
-If that fails, or you care about the performance of MP, you need to read the
-full instructions in the chapter "Installing MP", in the manual.
+If that fails, or you care about the performance of GMP, you need to read the
+full instructions in the chapter "Installing GMP", in the manual.
Next, you need to try some small test programs, for example the ones below.
-In MP programs, all variables need to be initialized before they are assigned,
-and cleared out before program flow leaves the scope in which they were
-declared. Here is an example of a program that reads two numbers from the
-command line, multiplies them, and prints the result to stdout.
+In GMP programs, all variables need to be initialized before they are
+assigned, and cleared out before program flow leaves the scope in which they
+were declared. Here is an example of a program that reads two numbers from
+the command line, multiplies them, and prints the result to stdout.
#include <stdio.h>
- #include <gmp.h> /* All MP programs need to include gmp.h */
+ #include <gmp.h> /* All GMP programs need to include gmp.h */
main (int argc, char **argv)
{
@@ -62,8 +62,8 @@ command line, multiplies them, and prints the result to stdout.
This might look tedious, with all the initializing and clearing. Fortunately
some of these operations can be combined, and other operations can often be
-avoided. The example above would be written differently by an experienced GNU
-MP user:
+avoided. The example above would be written differently by an experienced GMP
+user:
#include <stdio.h>
@@ -93,15 +93,15 @@ MP user:
exit (0);
}
-Now you have to compile your test program, and link it with the MP library.
+Now you have to compile your test program, and link it with the GMP library.
Assuming your working directory is still the gmp source directory, and your
source file is called example.c, enter:
gcc -g -I. example.c .libs/libgmp.a -lm
-The -lm is normally not needed, since only a few functions in MP use the math
+The -lm is normally not needed, since only a few functions in GMP use the math
library. After installing, the command becomes: gcc -g example.c -lgmp -lm
-MP is libtool based, and you can use that to link if you want.
+GMP is libtool based, and you can use that to link if you want.
Now try to run the example:
@@ -113,9 +113,10 @@ starting with "mpz_". There are many more such functions than used in these
examples. See the chapter "Integer Functions" in the manual, for a complete
list.
-There are two other main classes of functions in MP. They operate on rational
-numbers and floating-point numbers, respectively. The chapters "Rational
-Number Functions", and "Floating-point Functions" document these classes.
+There are two other main classes of functions in GMP. They operate on
+rational numbers and floating-point numbers, respectively. The chapters
+"Rational Number Functions", and "Floating-point Functions" document these
+classes.
To run a set of tests, do "make check". This will take a while.
@@ -125,10 +126,10 @@ gmp.dvi" or "make gmp.ps". This requires various "tex" commands.
To install the library, do "make install" (you can then use -lgmp instead of
.libs/libgmp.a).
-If you decide to use MP, It is a good idea you read at least the chapter "MP
+If you decide to use GMP, It is a good idea you read at least the chapter "GMP
Basics" in the manual.
-Some known build problems are noted in the "Installing MP" chapter of
+Some known build problems are noted in the "Installing GMP" chapter of
the manual. Please report other problems to bug-gmp@gnu.org.