[Lazarus] Converting Fortran to FPC?

Bo Berglund bo.berglund at gmail.com
Wed Oct 13 23:54:12 CEST 2010


On Tue, 12 Oct 2010 14:57:01 +0200, Thierry Coq <tcoq at free.fr> wrote:

>On 06/10/2010 23:34, Bo Berglund wrote:
>> So my question now is if there is any experience of either porting
>> Fortran code to FPC or of compiling Fortran code for a Windows DLL
>> into the corresponding function in Linux?
>> (By te way, is there such a thing as a DLL in Linux?)
>>
>>
>>    
>Have you looked here?
>
>http://www.efg2.com/Lab/Library/Delphi/MathInfo/Resources.htm
>
>I had used Hans Lohninger's matrix quite effectively on a previous program.
>You might find other pascal resources that will allow you not to recode 
>the LAPACK routines.
>Be careful about your numerical precision requirements.

Couldn't find any downloads at SDL except for "light" or "demo"
versions...

>
>FYI, Fortran 77 is rather easy to port. The language is structured, and 
>the data is easily converted, if you bear in mind that most data is 
>stored and exchanged in common blocks. Only some data is passed through 
>subroutines arguments. There would be very limited dynamic data if any. 
>You might have a learning curve for the string (FORMAT) functions, but 
>that should not be a problem here.

I found it to be too hard work for now, so I am concentrating on the
simpler parts of the project, communicating with the data acquisition
system using 5dpoSerial....


-- 
Bo Berglund
Developer in Sweden





More information about the Lazarus mailing list