Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-pascal / 2017-11

Re: fpc-pascal Digest, Vol 161, Issue 18

1 message · 1 person ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Schindler Karl-Michael
Show quoted text 29 lines
Am 14.11.2017 um 12:00 schrieb Date: Sun, 12 Nov 2017 08:56:49 -0500 From: brian To: FPC-Pascal users discussions Subject: [fpc-pascal] FORTRAN from FreePascal Message-ID: Content-Type: text/plain; charset=utf-8 I need to try to put a user-friendly GUI and some graphical output onto an old command-line FORTRAN number cruncher, and have been provided with around 130 KB of FORTRAN source code. A quick scan of documentation seems to suggest that this is possible using gfortran and the C calling conventions (if someone knows differently, please say so right now!) :) My knowledge of FORTRAN-77 is sound, if rather rusty, but I know almost nothing about C programming, having been brought up as a chemist before I was dragged across to programming (I learned to program on Algol-60, BASIC and FORTRAN-IV, yes, that long ago ): ). Anyone with any past experience here? It seems I have two choices, to try to call the FORTRAN subroutines from FreePascal or to port the FORTRAN code to Pascal, I'm looking for advice... Thanks, Brian.

What you are describing is also part of my activities. Most of the details have already been mentioned by Adrian and others. Only one more thing: The Fortran code will probably be compiled with 64 bit, so use fpc 64 bit.

Michael.