This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Building a program with C an FORTRAN code: OK
- To: Ramiro Alba Queipo <ramiro at labtie dot mmt dot upc dot es>
- Subject: Re: Building a program with C an FORTRAN code: OK
- From: Dave Love <d dot love at dl dot ac dot uk>
- Date: 01 Nov 1998 12:48:34 +0000
- Cc: egcs at cygnus dot com
- References: <36384199.C8FFB268@labtie.mmt.upc.es> <19981030094814.A3044@keksy.mchp.siemens.de> <3639938D.6303C143@labtie.mmt.upc.es>
>>>>> "RAQ" == Ramiro Alba Queipo <ramiro@labtie.mmt.upc.es> writes:
RAQ> Thanks to people answering my question.
[Be careful with any advice in this area saying general things. About
the only thing you can say generally across systems is `it depends'.]
RAQ> The solution was adding underscores to the C functions, witch we
RAQ> also met when compiling for SGI but I did not remember it.
The (default) g77 calling conventions are not necessarily all the same
as SGI compilers; in fact I'm pretty sure that there are differences,
but I've forgotten how SGI does everything. You must read the
specific compiler documentation for this unless you use a canned
system like cfortran.h (mentioned in the g77 manual) which supports
it.
RAQ> Only one question. Where can I find aditional information of
RAQ> porting code to egcs? Info system at the instalation?
As far as I know, all the information about the GNU Fortran Language
and linking conventions etc. that is written up is in the g77 Texinfo
manual (g77.info), but this is surely incomplete and possibly not as
well organized as it could be. Please tell us what you need that is
missing or difficult to find.