Date: Thu, 21 Jul 1994 07:52:59 -0400 (EDT) From: Edwin Phillips Subject: Re: your mail To: mgroup AT bepc2 DOT ihep DOT ac DOT cn Cc: DJGPP mailing list On Thu, 21 Jul 1994 mgroup AT bepc2 DOT ihep DOT ac DOT cn wrote: > Dear Ed Phillips, > > Thank you very much for your mail on 6 Jul. > I still have two questions about the usage of GCC and F2C. I would be > grateful if you could tell me how to do. > I don't use F2C, but there are several people on the DJGPP mailing list who do, and they could probably help you better than I could. > 1. May I call the subroutines which are included in LIBC.A (and other lib) > by FORTRAN? For example, how to get the cup time? > This should be possible. There should already be a mechanism for calling C routines from FORTRAN as part of F2C. > 2. F2C can convert XXXX.F to XXXX.c. May I use the other pc C compiler, > such as MS C, TB C or Borland C, to compile XXXX.c? Could you tell me > how to modified the file XXXX.c to meet the need of other pc C compiler? > Your should be able to compile F2C with TC or MSC... but it's probably already been done. You may want to look around for it. I think you'll have to use F2C for BC to generate code for BC, etc. The the XXXX.c program generated will depend on a .LIB or .A library which is part of the F2C distribution. I could be way off on this, but if memory serves me, F2C comes with a library, and the generated XXXX.c code make calls to that library. > best regards. > > sincerely > Tianjue Zhang > >  > /****************************************************************************/ /* Ed Phillips flaregun AT strauss DOT udel DOT edu University of Delaware */ /* Jr Systems Programmer (302) 831-6082 IT/Network and Systems Services */ /****************************************************************************/