Re: [Lazarus] Converting Fortran to FPC?

2010-10-13 Thread Bo Berglund
On Tue, 12 Oct 2010 14:57:01 +0200, Thierry Coq t...@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

Re: [Lazarus] Converting Fortran to FPC?

2010-10-10 Thread Mark Morgan Lloyd
Bo Berglund wrote: I already had a look at manual conversion of a few functions and tey look fairly simple really, mostly a lot of array manipulations in do loops. Be warned that you might need to be careful with numeric accuracy- rounding errors etc. It would be good practice to make sure

Re: [Lazarus] Converting Fortran to FPC?

2010-10-08 Thread Michael Schnell
AFAIK, gcc can compile Fortran. As Fortran is not am object language, the functions should be flat and thus it should be possible to simply call them from FPC. -Michael -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org

Re: [Lazarus] Converting Fortran to FPC?

2010-10-07 Thread Juha Manninen (gmail)
On Thursday 07 October 2010 00:34:29 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? I don't know Fortran much but it is a simpler language that

Re: [Lazarus] Converting Fortran to FPC?

2010-10-07 Thread Mark Morgan Lloyd
Bo Berglund wrote: On Thu, 07 Oct 2010 02:19:34 +, Mark Morgan Lloyd markmll.laza...@telemetry.co.uk wrote: Yes, I believe there's a GNU FORTRAN but other than eyeballing it to see what sort of parallelisation facilities it provides I've not touched FORTRAN for around 30 years. The

Re: [Lazarus] Converting Fortran to FPC?

2010-10-07 Thread Mark Morgan Lloyd
Bo Berglund wrote: On Thu, 07 Oct 2010 02:22:55 +, Mark Morgan Lloyd markmll.laza...@telemetry.co.uk wrote: Bo Berglund wrote: On Wed, 06 Oct 2010 23:34:29 +0200, Bo Berglund bo.bergl...@gmail.com wrote: I found this converter by googling (offered on several websites, but basically the

Re: [Lazarus] Converting Fortran to FPC?

2010-10-07 Thread Bo Berglund
On Thu, 07 Oct 2010 09:04:04 +, Mark Morgan Lloyd markmll.laza...@telemetry.co.uk wrote: A few seconds Googling comes up with http://community.freepascal.org:1/bboards/message?message_id=145352forum_id=24105 which points at a Windows-based converter, still '77 though. There's also

Re: [Lazarus] Converting Fortran to FPC?

2010-10-07 Thread Felipe Monteiro de Carvalho
Try using the same url with port 8080 -- Felipe Monteiro de Carvalho -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Re: [Lazarus] Converting Fortran to FPC?

2010-10-07 Thread Mark Morgan Lloyd
Bo Berglund wrote: On Thu, 07 Oct 2010 09:04:04 +, Mark Morgan Lloyd markmll.laza...@telemetry.co.uk wrote: A few seconds Googling comes up with http://community.freepascal.org:1/bboards/message?message_id=145352forum_id=24105 which points at a Windows-based converter, still '77

Re: [Lazarus] Converting Fortran to FPC?

2010-10-07 Thread Mark Morgan Lloyd
Bo Berglund wrote: On Thu, 07 Oct 2010 09:04:04 +, Mark Morgan Lloyd markmll.laza...@telemetry.co.uk wrote: A few seconds Googling comes up with http://community.freepascal.org:1/bboards/message?message_id=145352forum_id=24105 which points at a Windows-based converter, still '77

Re: [Lazarus] Converting Fortran to FPC?

2010-10-07 Thread Bo Berglund
On Thu, 7 Oct 2010 11:43:16 +0200, Felipe Monteiro de Carvalho felipemonteiro.carva...@gmail.com wrote: Try using the same url with port 8080 Tried: http://community.freepascal.org:8080/bboards/message?message_id=145352forum_id=24105 Same result. Our IT department has very strict taps on

Re: [Lazarus] Converting Fortran to FPC?

2010-10-07 Thread Felipe Monteiro de Carvalho
The contents of the page are small. I'll just copy here: Fortran to Pascal Notify me of responses HI! I've read about a very good converter from Fortran 77 to Pascal, ForPasC, and tried to download it, but all the links seem to be broken. Could anybody provide me with the program, perhaps for

Re: [Lazarus] Converting Fortran to FPC?

2010-10-07 Thread Gustavo Enrique Jimenez
Hi 2010/10/6 Bo Berglund bo.bergl...@gmail.com: I have a question that might be OT here, but I will try nevertheless: We have a Windows application written in Delphi for data analysis and display. It uses GLScene as the data rendering engine and it uses 3 Fortran DLL:s to do the number

Re: [Lazarus] Converting Fortran to FPC?

2010-10-07 Thread C Western
On 10/07/2010 02:32 PM, Gustavo Enrique Jimenez wrote: Hi 2010/10/6 Bo Berglundbo.bergl...@gmail.com: I have a question that might be OT here, but I will try nevertheless: We have a Windows application written in Delphi for data analysis and display. It uses GLScene as the data rendering

Re: [Lazarus] Converting Fortran to FPC?

2010-10-07 Thread Bo Berglund
On Thu, 7 Oct 2010 15:09:15 +0200, Felipe Monteiro de Carvalho felipemonteiro.carva...@gmail.com wrote: http://www.irpcsoft.com/download/forpascsetup.exe that it the link for the windows/dos version, i don't know if there is a linux version. I downloaded and tried it but the result was not very

Re: [Lazarus] Converting Fortran to FPC?

2010-10-07 Thread Juha Manninen (gmail)
On Thursday 07 October 2010 21:36:14 Bo Berglund wrote: I think that I would need a lot of time to go over this and just get it to work correctly according to the comments in the code And then I would not know if it actually did the right conversions. You have the original DLLs to test

Re: [Lazarus] Converting Fortran to FPC?

2010-10-07 Thread Bo Berglund
On Thu, 7 Oct 2010 21:52:14 +0300, Juha Manninen (gmail) juha.mannine...@gmail.com wrote: On Thursday 07 October 2010 21:36:14 Bo Berglund wrote: I think that I would need a lot of time to go over this and just get it to work correctly according to the comments in the code And then I would

Re: [Lazarus] Converting Fortran to FPC?

2010-10-07 Thread Juha Manninen (gmail)
On Thursday 07 October 2010 23:33:37 Bo Berglund wrote: What I meant is that I found the Delphi code for the ForToPas program. Since it did not work I tried to open the ForToPas project in D7 and correct the erroneous code. But it is written in a very strange way so it would need a lot of

Re: [Lazarus] Converting Fortran to FPC?

2010-10-07 Thread Bo Berglund
On Fri, 8 Oct 2010 01:56:10 +0300, Juha Manninen (gmail) juha.mannine...@gmail.com wrote: Apparently the automatic conversion doesn't work. You must do it manually. It is not only a bad thing because then you also must understand the code while converting it. Yeah, yet another language to

[Lazarus] Converting Fortran to FPC?

2010-10-06 Thread Bo Berglund
I have a question that might be OT here, but I will try nevertheless: We have a Windows application written in Delphi for data analysis and display. It uses GLScene as the data rendering engine and it uses 3 Fortran DLL:s to do the number crunching. I want to port the whole thing to Lazarus/FPC

Re: [Lazarus] Converting Fortran to FPC?

2010-10-06 Thread Bo Berglund
On Wed, 06 Oct 2010 23:34:29 +0200, Bo Berglund bo.bergl...@gmail.com wrote: I found this converter by googling (offered on several websites, but basically the same everywhere): http://sourceforge.net/projects/fortran2pascal/ but unfortunately it only handles Fortran77 code, whereas our code is

Re: [Lazarus] Converting Fortran to FPC?

2010-10-06 Thread David W Noon
On Wed, 06 Oct 2010 23:34:29 +0200, Bo Berglund wrote about [Lazarus] Converting Fortran to FPC?: [snip] 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? I doubt you

Re: [Lazarus] Converting Fortran to FPC?

2010-10-06 Thread waldo kitty
On 10/6/2010 17:34, Bo Berglund wrote: I have a question that might be OT here, but I will try nevertheless: i don't see anything OT about it but then again, i'm just a lowly user like you :P We have a Windows application written in Delphi for data analysis and display. It uses GLScene as

Re: [Lazarus] Converting Fortran to FPC?

2010-10-06 Thread Mark Morgan Lloyd
waldo kitty wrote: FWIW: there is probably a FORTRAN compiler for *nix... whether or not it can take your existing FORTRAN code and compile it to a library for *nix is another question... and, as noted above, there may not be any real need to keep those routines in FORTRAN... it may be pretty

Re: [Lazarus] Converting Fortran to FPC?

2010-10-06 Thread Mark Morgan Lloyd
Bo Berglund wrote: On Wed, 06 Oct 2010 23:34:29 +0200, Bo Berglund bo.bergl...@gmail.com wrote: I found this converter by googling (offered on several websites, but basically the same everywhere): http://sourceforge.net/projects/fortran2pascal/ but unfortunately it only handles Fortran77 code,

Re: [Lazarus] Converting Fortran to FPC?

2010-10-06 Thread Bo Berglund
On Thu, 07 Oct 2010 02:22:55 +, Mark Morgan Lloyd markmll.laza...@telemetry.co.uk wrote: Bo Berglund wrote: On Wed, 06 Oct 2010 23:34:29 +0200, Bo Berglund bo.bergl...@gmail.com wrote: I found this converter by googling (offered on several websites, but basically the same everywhere):

Re: [Lazarus] Converting Fortran to FPC?

2010-10-06 Thread Bo Berglund
On Thu, 07 Oct 2010 02:19:34 +, Mark Morgan Lloyd markmll.laza...@telemetry.co.uk wrote: waldo kitty wrote: FWIW: there is probably a FORTRAN compiler for *nix... whether or not it can take your existing FORTRAN code and compile it to a library for *nix is another question... and, as

Re: [Lazarus] Converting Fortran to FPC?

2010-10-06 Thread Bo Berglund
On Thu, 07 Oct 2010 02:19:34 +, Mark Morgan Lloyd markmll.laza...@telemetry.co.uk wrote: waldo kitty wrote: FWIW: there is probably a FORTRAN compiler for *nix... whether or not it can take your existing FORTRAN code and compile it to a library for *nix is another question... and, as