Patch: f2c.h Question: objc backend

Dave Love d.love@dl.ac.uk
Tue Jan 20 14:54:00 GMT 1998


>>>>> "Alexandre" == Alexandre Oliva <oliva@dcc.unicamp.br> writes:

 Alexandre> I believe this is unnecessary, since, if people compile C
 Alexandre> files (translated from Fortran by f2c) with gcc, it will
 Alexandre> find f2c.h anyway, and it will link against g77's
 Alexandre> libf2c.a.  Is my reasoning wrong?

No, you're right, there will always be _an_ f2c.h found; the question
is whether it's consistent with (a) the libf2c.a that gets linked (b)
been compiled into g77 regarding type sizes.

 Alexandre> Is there any reason to make f2c available?  

It's particularly useful as an interface generator if you're mixing
Fortran and C or something else via a SWIG-like scheme.  [`f2c -P'
gives you C prototypes for the fortran routines corresponding to the
g77 default code generation.]  Presumably G77 could do this, but it
doesn't currently.  It may end up translating more for the g77 runtime
at some stage, but that's not necessarily a reason for distributing it
with g77, and I suspect the things it does that g77 doesn't aren't now
compelling.



More information about the Gcc mailing list