Re: Fortran functions?

From: Lamar Owen <lamar(dot)owen(at)wgcr(dot)org>
To: Thomas Lockhart <lockhart(at)fourpalms(dot)org>
Cc: Clive Page <cgp(at)nospam(dot)le(dot)ac(dot)uk>, pgsql-general(at)postgresql(dot)org
Subject: Re: Fortran functions?
Date: 2002-07-18 05:05:47
Message-ID: 200207180105.47613.lamar.owen@wgcr.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Wednesday 17 July 2002 09:03 pm, Thomas Lockhart wrote:
> > My cross-language linking skills are lacking.

> Once you get into it you'll be OK. C wrappers are necessary to convert
> all "by value" results to "by reference" for Fortran, and you'll likely
> need to do that anyway to get past the user-defined-function calling
> parameter list.

> It's been years since I've glued Fortran to C, but it is definitely
> possible. And it should be smoother than back when I was doing it...

Well, after really digging into this code, I can see it is going to be yucky.
Very yucky. Rewrite-city-grade yucky. Subroutines get their params, some of
which pass back to the calling program -- and some of which are passed back
through COMMON's. Yucky.

So I may go way-around-my elbow and use the Fortran-to-Python wrapper, and
then use the python PostgreSQL client. And I'll just pull out the bare
minimum of this code -- which is a dozen or so functions out of 25,000 lines
or so of the core code.

Anyway, many thanks for the help and words of encouragement.
--
Lamar Owen
WGCR Internet Radio
1 Peter 4:11

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Trev 2002-07-18 05:52:30 Re: ERROR: bt_fixroot: not valid old root page
Previous Message Justin Clift 2002-07-18 04:43:06 [Fwd: Question about Postgres??????]