Здравствуйте, Serge419, Вы писали:
S>Существует ли такое? То есть чтобы все идентификаторы остались такими же
S>и, главное, логика работы программы сохранилась.
I. Есть программа Fortran2C:
http://www.rehost.com/software/
II. Из одного из форумов, но сам не проверял:
Bell labs has a free service that converts the
fortran source code to C code. The procedure is as follows:
1. Send email to: netlib@netlib.bell-labs.com with subject 'execute f2c'
2. Paste your fortran source code in the text message area.
(Note: Sending it as attachment does not work).
3. In a few minutes, A C version of your source code is mailed
back to you. The first few lines of the code are comments which
indicate which libraries you will need to link to. For my
example, the C code specified libraries libm and libf2c so
I compiled my file using:
gcc file.c -lf2c -lm
4. The libf2c library is in /usr/lib
Make sure you have /usr/lib in your LD_LIBRARY_PATH environment variable.
(Look in ~/.profile or ~/.login file for this).
Questions/Comments to Tim (tim@fourier.che.udel.edu) or Raj (raj@udel.edu)