Short: Fortran to C for SAS (15.6.94) 1/2 Author: AT&T Bell Laboratories and Bellcore Uploader: torsten@diku.dk (Torsten Poulin) Type: dev/lang This is a straight Amiga port of F2C (version of 15 June 1994), a Fortran to C/C++ translator (or is it a compiler?). This version of f2c is intended for use with SAS/C 6.51. It was ported by me, Torsten Poulin, using SAS/C 6.51. For convenience, the distribution has been split into two parts: f2c3.2bin.lha - The binary and the linker library. f2c3.2src.lha - The full source for the compiler and library. The binary distribution is all you will need for normal use. As a bonus, it includes a version of the Ratfor FORTRAN preprocessor and a rather simplistic, but usable, utility in Ratfor for splitting up monolithic FORTRAN sources; both written by me - use at your own risk :-) As f2c has no official version number - only a date, see above - I have made up my own to distinguish this port from previous ones done by myself. The major part of the number signifies that I have used a new release of the official source and the minor part should be considered a patchlevel. Thus, this is the second version (a bugfix) built from the third set of source files I have laid my hands on. In the readme file accompanying the previous distribution (f2c3.1[bin|src].lha) I said that the result, so far, had worked flawlessly for me. Well, it did. But I had made a serious goof in the code that handled temporary files. The resulting bug didn't manifest itself on my 68k with 24-bit addresses and thus went unnoticed. The situation was quite different on a true 32-bit machine with memory at high addresses. I would like to thank John Kot (jkot@rp.csiro.au) for reporting the problem enough times for me to start worrying :-) and in particular Richard Deken (Rad6938@tntech.edu) for saving me some work by not only pinpointing the source of the problem but also for suggesting a possible solution; I decided to do it differently, though. While I was at it, I recompiled everything with the global optimizer switched on, something I forgot the last time around. Installation is simple: Unpack the binary archive. Copy the linker library f2c.lib in the lib directory to LIB: Copy f2c.h to INCLUDE: Copy the f2c executable from the bin directory to somewhere in your search path. Simple usage: 1> f2c test.f 1> sc link opt test.c lib:f2c.lib math=standard code=far data=far 1> test Drop me some mail if you have any comments, questions, or bug reports concerning the port. EMAIL: torsten@diku.dk SNAIL-MAIL: Torsten Poulin Frankrigsgade 50, 5, 508 DK-2300 Copenhagen S Denmark Good luck - Torsten ============================= Archive contents ============================= Original Packed Ratio Date Time Name -------- ------- ----- --------- -------- ------------- 247688 129339 47.7% 15-Oct-94 11:50:16 f2c-for-SASC651/bin/f2c 45712 25668 43.8% 15-Oct-94 16:42:52 f2c-for-SASC651/bin/fsplit 35448 19686 44.4% 15-Oct-94 16:28:30 f2c-for-SASC651/bin/ratfor77 77769 31771 59.1% 29-Jun-94 12:43:06 f2c-for-SASC651/changes 6118 2766 54.7% 29-Jun-94 12:43:34 f2c-for-SASC651/f2c.doc 4316 1481 65.6% 30-Jun-94 08:34:16 f2c-for-SASC651/f2c.h 7606 7606 0.0% 15-Oct-94 16:46:40 f2c-for-SASC651/fsplit.lha 86276 34711 59.7% 15-Oct-94 14:38:54 f2c-for-SASC651/lib/f2c.lib 32412 32412 0.0% 15-Oct-94 16:33:08 f2c-for-SASC651/ratfor.lha 16607 7250 56.3% 29-Jun-94 12:42:34 f2c-for-SASC651/readme 2361 1263 46.5% 15-Oct-94 15:29:48 f2c-for-SASC651/README.Amiga -------- ------- ----- --------- -------- 562313 293953 47.7% 16-Oct-94 23:33:52 11 files