| 1 |
<!doctype html public "-//w3c//dtd html 4.0 transitional//en"> |
| 2 |
<html> |
| 3 |
<head> |
| 4 |
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> |
| 5 |
<meta name="GENERATOR" content="Mozilla/4.5 [en] (X11; I; SunOS 5.5.1 sun4u) [Netscape]"> |
| 6 |
<title>cfortran.h</title> |
| 7 |
</head> |
| 8 |
<body bgcolor="#FFFFFF"> |
| 9 |
<br> |
| 10 |
<h2> |
| 11 |
cfortran.h : Interfacing C or C++ and FORTRAN |
| 12 |
</h2> |
| 13 |
|
| 14 |
cfortran.h is an easy-to-use powerful bridge between C and FORTRAN.<br> |
| 15 |
It provides a transparent, machine independent interface between<br> |
| 16 |
C and FORTRAN routines and global data.<br> |
| 17 |
<br> |
| 18 |
C and C++ are generally equivalent as far as cfortran.h is concerned.<br> |
| 19 |
Unless explicitly noted otherwise, mention of C implicitly includes C++.<br> |
| 20 |
<br> |
| 21 |
The following presentation is a good introduction to mixed language programming.<br> |
| 22 |
Burkhard D. Burow. "Mixed Language Programming",<br> |
| 23 |
In Computing in High Energy Physics (CHEP'95), Rio de Janeiro, Brazil,<br> |
| 24 |
Sept. 1995, editors R. Shellard and T.Nguyen, World Scientific, pp. 610-614.<br> |
| 25 |
Here is the <a href="http://www-zeus.desy.de/~burow/cfortran/CHEP95.cfortran.h.paper.ps">paper</a> |
| 26 |
and the <a href="http://www-zeus.desy.de/~burow/cfortran/CHEP95.cfortran.h.talk.ps">slides</a> of the presentation.<br> |
| 27 |
It introduces cfortran.h and alternative methods for mixed language programming<br> |
| 28 |
and thus can help you decide if cfortran.h can be of use to you.<br> |
| 29 |
<br> |
| 30 |
Knowing its popularity might help you decide if cfortran.h can be of use to you.<br> |
| 31 |
The following is my best estimate of the number of users of cfortran.h.<br> |
| 32 |
Since its first release in 1990, <a href="mailto:[email protected]">I</a> have exchanged e-mails with hundreds of users of cfortran.h.<br> |
| 33 |
Assuming that a small fraction of users of cfortran.h ever send me e-mail,<br> |
| 34 |
then cfortran.h has a few thousand users. You easily can find users in a www search.<br> |
| 35 |
<br> |
| 36 |
<br> |
| 37 |
The cfortran.h software consists of the single C header file <a href="file:///usr/include/cfortran.h">cfortran.h</a>.<br> |
| 38 |
<br> |
| 39 |
The documentation is the single file <a href="cfortran.html">cfortran.html</a>.<br> |
| 40 |
The documentation also is available at its original location <a href="http://wwwinfo.cern.ch/asd/cernlib/cfortran.html">http://wwwinfo.cern.ch/asd/cernlib/cfortran.html</a>.<br> |
| 41 |
The documentation also is available as the gzipped ASCII file <a href="cfortran.doc.gz">cfortran.doc.gz</a>.<br> |
| 42 |
<br> |
| 43 |
A variety of small independent applications are available to test and demonstrate cfortran.h.<br> |
| 44 |
All the applications are contained in |
| 45 |
<!--a compressed tar file <a href="examples/cfortran.examples.tar.gz">cfortran.examples.tar.gz</a>.<br> |
| 46 |
The following will unpack the applications into a directory named eg/.<br> |
| 47 |
The program zcat is the GNU version or compatible.<br> |
| 48 |
unix> zcat cfortran.examples.tar.gz | tar xf -<br> --> |
| 49 |
the <a href = "examples/">examples</a> directory. |
| 50 |
<br> |
| 51 |
Though NOT recommended for most purposes,<br> |
| 52 |
the above applications also are available in a single C file <a href="examples/cfortest.c">cfortest.c</a><br> |
| 53 |
and a single Fortran file <a href="examples/cfortex.f">cfortex.f</a>.<br> |
| 54 |
<br> |
| 55 |
<br> |
| 56 |
If cfortran.h has served you well, you may want to look at the recent instance of graph reduction<br> |
| 57 |
described at <a href="http://www-zeus.desy.de/~funnel/TSIA/index.htm">http://www-zeus.desy.de/~funnel/TSIA/index.htm</a>.<br> |
| 58 |
cfortran.h provides an application with transparent mixed language programming.<br> |
| 59 |
In other words, cfortran.h hides the details of mixed language programming from the application.<br> |
| 60 |
In a similar vein, graph reduction (a.k.a. dataflow) has long promised transparent parallelism,<br> |
| 61 |
reliability and other execution features. The promises have not been fulfilled, since graph reduction<br> |
| 62 |
lacked a practical implementation. Though not yet widely known, practical graph reduction recently<br> |
| 63 |
has been achieved.<br> |
| 64 |
<br> |
| 65 |
<br> |
| 66 |
<hr WIDTH="100%"> |
| 67 |
|
| 68 |
|
| 69 |
|
| 70 |
<p>Burkhard D. Steinmacher-Burow, Postfach 1163, 73241 Wernau, Germany. |
| 71 |
<br><a href="mailto:[email protected]">[email protected]</a> |
| 72 |
<br><a href="http://www-zeus.desy.de/~burow/cfortran/index.htm">http://www-zeus.desy.de/~burow/cfortran/index.htm</a> |
| 73 |
<p> |
| 74 |
<hr WIDTH="100%"> |
| 75 |
</body> |
| 76 |
</html> |