public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
* Using GMP in a GCC Frontend.
@ 2000-08-02 14:57 Toon Moene
  2000-08-03  9:42 ` Michael Meissner
  0 siblings, 1 reply; 3+ messages in thread
From: Toon Moene @ 2000-08-02 14:57 UTC (permalink / raw)
  To: gcc

L.S.,

After ample discussion on the GNU Fortran 95 mailing list (see the URL
given below), we've come to the conclusion that we need the GNU Multi
Precision Library for some compiler arithmetic (in addition to the
functions offered by floatlib.c).

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 ?

Thanks in advance for offering any insight ...

-- 
Toon Moene - mailto:toon@moene.indiv.nluug.nl - phoneto: +31 346 214290
Saturnushof 14, 3738 XG  Maartensdijk, The Netherlands
GNU Fortran 77: http://gcc.gnu.org/onlinedocs/g77_news.html
GNU Fortran 95: http://g95.sourceforge.net/ (under construction)

^ permalink raw reply	[flat|nested] 3+ messages in thread
* Re: Using GMP in a GCC Frontend.
@ 2000-08-02 15:27 Geert Bosch
  0 siblings, 0 replies; 3+ messages in thread
From: Geert Bosch @ 2000-08-02 15:27 UTC (permalink / raw)
  To: gcc, Toon Moene

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


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2000-08-03  9:42 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2000-08-02 14:57 Using GMP in a GCC Frontend Toon Moene
2000-08-03  9:42 ` Michael Meissner
2000-08-02 15:27 Geert Bosch

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).