Special

Introducing the “Welcome to Xojo” Bundle!

New to Xojo and looking for guidance? We've put together a terrific bundle to welcome you! Xojo Bundle

This bundle includes six back issues of the magazine -- all of year 21 in printed book and digital formats -- plus a one-year subscription (beginning with 22.1) so you'll be learning all about Xojo for the next year. It's the perfect way to get started programming with Xojo. And you save as much as $35 over the non-bundle price!

This offer is only available for a limited time as supplies are limited, so hurry today and order this special bundle before the offer goes away!

Article Preview


Buy Now

Issue 4.5

COLUMN

Legacy code: why throw it away?

Objective

Issue: 4.5 (May/June 2006)
Author Bio: Didier, aka dda, left Korea after 11 years working there, and is now exporting wine and spirits to Asia.
Article Description: No description available.
Article Length (in bytes): 10,135
Starting Page Number: 46
Article Number: 4518
Related Web Link(s):

http://www.netlib.org/f2c
http://fink.sf.net
http://www.fortran.com/
http://crd.lbl.gov/~dhbailey/
http://www.fortran.com/

Excerpt of article text...

This issue's column -- and probably the next one -- started as an email conversation between a reader (Franco Vaccari -- not to name him) and me. It rapidly developed to a point where I had enough material for an article that could interest more than one reader. So we broadened a bit the field of our discussion and this article is a snapshot of the ongoing effort we are making on providing a framework to re-compile Fortran code into C code and reuse it in RB. Franco's original requirement is to be able to reuse heaps of Fortran code they have developed at his institution, using f2c (http://www.netlib.org/f2c) to convert F77 code to C. With C source code, gcc and some Declares, and a bit of patience too, we should be able to recycle Gramps' code, right? Let's see how...

Objective

This column will lay the ground work for an automated Fortran-to-C-to-RB build framework. The ultimate objective would be of course to use RB 2006's latest shiny feature, IDE scripting. But in the meantime, we'll do the following:

  • provide for easy compilation of Fortran code into a C dylib

    produce necessary declares for the RB application

    provide install and packaging services for the final product

...End of Excerpt. Please purchase the magazine to read the full article.