This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Using GMP in a GCC Frontend.
- To: "gcc at gcc dot gnu dot org" <gcc at gcc dot gnu dot org>,"Toon Moene" <toon at moene dot indiv dot nluug dot nl>
- Subject: Re: Using GMP in a GCC Frontend.
- From: "Geert Bosch" <bosch at gnat dot com>
- Date: Wed, 02 Aug 2000 18:26:57 -0400
- Reply-To: "Geert Bosch" <bosch at gnat dot com>
On Wed, 02 Aug 2000 22:20:24 +0200, Toon Moene wrote:
However, AFAIK, that would mean that the Fortran 95 frontend would be
the first to depend on such an "outside" library.
Is that a problem - and if so, why ?
The GNAT frontend uses its own routines for unlimited precision
evaluation of rational expressions, as this is required by the
language standard. It is not that hard to do, and there would
be no reason why you couldn't steal the GNAT packages and
translate them to fortran or C.
The packages for universal integer and universal real are 2400 and 1400
lines respectively, of which about half blank or comment.
On the other hand, if more frontends are going to use this it might make
sense to include GMP...
-Geert