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

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

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

Schindler Karl-Michael-2

> Am 14.11.2017 um 12:00 schrieb [hidden email]:
>
> Date: Sun, 12 Nov 2017 08:56:49 -0500
> From: brian <[hidden email]>
> To: FPC-Pascal users discussions <[hidden email]>
> Subject: [fpc-pascal] FORTRAN from FreePascal
> Message-ID:
> <[hidden email]>
> 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.

_______________________________________________
fpc-pascal maillist  -  [hidden email]
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal