From mboxrd@z Thu Jan 1 00:00:00 1970 From: Dave Love To: egcs@cygnus.com Subject: Re: Patch: f2c.h Question: objc backend Date: Tue, 20 Jan 1998 14:54:00 -0000 Message-id: References: <199801161552.KAA18293@melange.gnu.org> X-SW-Source: 1998-01/msg00741.html >>>>> "Alexandre" == Alexandre Oliva 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.