Skip to content

Commit

Permalink
Added index.tex and homepage target in Makefile
Browse files Browse the repository at this point in the history
git-svn-id: svn://scm.gforge.inria.fr/svn/mlxxxidl/mlgmpidl/trunk@237 c27d38ec-fa33-0410-b621-fb01b97e5d69
  • Loading branch information
bjeannet committed Feb 1, 2011
1 parent bbb99e6 commit 3b942bd
Show file tree
Hide file tree
Showing 3 changed files with 101 additions and 4 deletions.
8 changes: 7 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -207,10 +207,16 @@ mlgmpidl.dvi: introduction.mli $(MLMODULES:%=%.mli)
$(LATEX) mlgmpidl
$(LATEX) mlgmpidl

html: introduction.mli $(MLMODULES:%=%.mli)
html: $(MLMODULES:%=%.mli)
mkdir -p html
$(OCAMLDOC) $(OCAMLINC) -html -d html -colorize-code $^

homepage: html mlgmpidl.pdf
hyperlatex index
scp -r index.html html mlgmpidl.pdf \
avedon:/home/wwwpop-art/people/bjeannet/mlxxxidl-forge/mlgmpidl
ssh avedon chmod -R ugoa+rx /home/wwwpop-art/people/bjeannet/mlxxxidl-forge/mlgmpidl

#--------------------------------------------------------------
# IMPLICIT RULES AND DEPENDENCIES
#--------------------------------------------------------------
Expand Down
90 changes: 90 additions & 0 deletions index.tex
Original file line number Diff line number Diff line change
@@ -0,0 +1,90 @@
\documentclass[a4paper,11pt]{article}

\htmlcss{style.css}
\htmltitle{MLGMPIDL}
\htmlpanel{0}
\setcounter{htmlautomenu}{1}
\setcounter{htmldepth}{1}

\usepackage{hyperlatex}
\usepackage{xspace}
%\usepackage{frames}

\newcommand{\ocaml}{\xlink{OCaml}{http://www.caml.org}\xspace}
\newcommand{\gmp}{\xlink{GMP}{http://gmplib.org/}\xspace}
\newcommand{\mpfr}{\xlink{MPFR}{http://www.mpfr.org/}\xspace}
\newcommand{\camlidl}{\xlink{CamlIDL}{http://caml.inria.fr/camlidl/}\xspace}
\newcommand{\findlib}{\xlink{FINDLIB}{http://projects.camlcity.org/projects/findlib.html}\xspace}

\title{MLGMPIDL}
\date{}
\author{}

\begin{document}

%\xmlattributes*{img}{align="left"}
%\xlink{\htmlimg{http://devel.inria.fr/logo_inria.png}{INRIA}}{http://www.inria.fr}
\xlink{Up}{../index.html}
\maketitle

\section{About}

MLGMPIDL is a package offering an interface to the \gmp and \mpfr
libraries for \ocaml version 3.07 or higher. The interface offers
access to almost all the functions of the library, and is decomposed into 7 submodules, corresponding to C
modules:

\noindent
\begin{tabular}{l@{~:~~}l}
Mpz & GMP integers, with side-effect semantics (as in C library) \\
Mpq & GMP rationals, with side-effect semantics (as in C library) \\
Mpzf & GMP integers, with functional semantics \\
Mpqf & GMP rationals, with functional semantics \\
Mpf & GMP multiprecision floating-point numbers \\
Gmp\_random & GMP random number functions \\
Mpfr & MPFR multiprecision floating-point numbers, with side-effect semantics (as in C library) \\
Mpfrf & MPFR multiprecision floating-point numbers, with functional semantics
\end{tabular}

There already exist such an interface, \textsc{mlgmp}, written by
D. Monniaux and available
\xlink{here}{http://www.di.ens.fr/~monniaux/programmes.html.en}.
The motivation for writing a new one were:
\begin{enumerate}
\item The fact that \textsc{mlgmp} provides by default a
functional interface to \textsc{GMP}, potentially more costly in
term of memory allocation than an imperative interface.
\textsc{mlgmp} provides only a relative small numbers of
functions in an imperative version.
\item The compatibility with the \textsc{CamlIDL} tool.
\textsc{MLGmpIDL} uses \textsc{CamlIDL}, so that other OCaml/C
interfaces written with \textsc{CamlIDL} may reuse the
\textsc{MLGmpIDL} \texttt{.idl} files.
\end{enumerate}

\section{License}
LGPL

\section{Requirements}
\begin{itemize}
\item An ANSI C compiler (only gcc with ansi option has been really
tested)
\item The \gmp and (optionally) the \mpfr libraries
\item The \ocaml system (of course !)
\item The \camlidl stub code generator
\item Optional (but strongly recommended): \findlib.
\end{itemize}

\section{Download}

\begin{itemize}
\item \xlink{Subversion repository}{http://gforge.inria.fr/plugins/scmsvn/viewcvs.php/?root=mlxxxidl}
\end{itemize}

\section{Documentation}
\begin{itemize}
\item \xlink{On-line}{html/index.html}
\item \xlink{PDF}{mlgmpidl.pdf}
\end{itemize}

\end{document}
7 changes: 4 additions & 3 deletions introduction.mli
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
This package is an OCaml interface for the GMP
interface, which is decomposed into 7 submodules, corresponding to C
modules:
{ul
{- {module: Mpz}: GMP integers, with side-effect semantics (as in C library)}
{- {module: Mpq}: GMP rationals, with side-effect semantics (as in C library)}
Expand Down Expand Up @@ -38,6 +38,7 @@
{ul
{- GMP library (tested with version 4.0 and up)}
{- MPFR library (optional, tested with version 2.2.x)}
{- FINDLIB/ocamlfind}
{- OCaml 3.0 or up (tested with 3.09 and 3.10)}
{- Camlidl (tested with 1.05)}
}
Expand All @@ -49,7 +50,7 @@
Set the file Makefile.config using the Makefile.config model to your own
setting. You might also have to modify the Makefile for executables
If you download from the subversion repository, type 'make
rebuild', which builds [.ml], [.mli], and [_caml.c] files from [.idl]
files.
Expand All @@ -68,7 +69,7 @@
{- {b Interpreter and toplevel}
With dynamic linking, you can use ordinary runtime ocamlrun and
toplevel, otherwise 'make gmprun', 'make gmptop'.
toplevel.
You can play with [session.ml], and compile it with 'make
session.byte', 'make session.opt'.
Expand Down

0 comments on commit 3b942bd

Please sign in to comment.