On 25 Oct 2006, at 14:43, Theodore H. Smith wrote:

Why not just work with the C++ code? use f2c, then clean up the C++ code and dump fortran altogether.

Well, I don't know C/C++ well enough to play with it, and I have a large amount of fortran code that I'd like to integrate in RB projects. For the moment I don't need to access fortran variables from rb, and moving information via input/output files is an easy and viable solution...

If the code is small, it's a good idea. If it's a lot code, you'd probably be better off leaving it in fortran.

Yes, I better leave it in fortran... I'll go on experimenting.

I also converted a quite large program from fortran to RB, but execution speed is so poor in comparison that in the future I'll try to avoid this solution. On the contrary, f2c-converted code compiled and run in a terminal doesn't show a slowdown with respect to the fortran compiled app, even if the C code produced by f2c is very likely not optimized. So I expect to have quite the same performance going the plugin way...

Ciao

Franco



--------------------
Franco Vaccari
Trieste - Italy
--------------------

_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>

Reply via email to