[fpc-pascal] fpc-pascal Digest, Vol 161, Issue 18

Schindler Karl-Michael karl-michael.schindler at web.de
Tue Nov 14 14:03:47 CET 2017


> Am 14.11.2017 um 12:00 schrieb fpc-pascal-request at lists.freepascal.org:
> 
> Date: Sun, 12 Nov 2017 08:56:49 -0500
> From: brian <brian at meadows.pairsite.com>
> To: FPC-Pascal users discussions <fpc-pascal at lists.freepascal.org>
> Subject: [fpc-pascal] FORTRAN from FreePascal
> Message-ID:
> 	<e1dddf5d-08d5-eb22-dcab-f10053890117 at meadows.pairsite.com>
> 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.




More information about the fpc-pascal mailing list