This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: G77 question (re: libg2c)
- From: Toon Moene <toon at moene dot indiv dot nluug dot nl>
- To: Gregory Z <gregz at ripco dot com>
- Cc: gcc at gcc dot gnu dot org
- Date: Sat, 27 Jul 2002 21:31:32 +0200
- Subject: Re: G77 question (re: libg2c)
- Organization: Moene Computational Physics, Maartensdijk, The Netherlands
- References: <3D42EDAF.16C4185E@ripco.com>
Gregory Z wrote:
> Does libg2c have anything to do with c? The question boils
> down to whether there is much difference in concept between
> g77 and f2c (or f77 and f2c, for that matter). What has me
> hooked on this question is the "to c" implied in the moniker
> "libg2c". I understand that libg2c is a set of libraries to
> handle GNU Fortran routines that the compiler does not do
> directly. Are these libraries written originally in C? Or in
> assembler?
The libraries are written in C (you can check for yourself - one of the
many advantages of using Free Software :-)
libg2c is a derivative of libf2c, the run-time library of the f2c compiler,
which *does* translate Fortran to C (that's what its name implies).
However, g77 does *not* translate Fortran to C, but to assembler. It uses
the lib{fg}2c library interface to call the run time library.
Hope this helps,
--
Toon Moene - mailto:toon@moene.indiv.nluug.nl - phoneto: +31 346 214290
Saturnushof 14, 3738 XG Maartensdijk, The Netherlands
Maintainer, GNU Fortran 77: http://gcc.gnu.org/onlinedocs/g77_news.html
Join GNU Fortran 95: http://g95.sourceforge.net/ (under construction)