Re: Fortran functions?

From: Thomas Lockhart <lockhart(at)fourpalms(dot)org>
To: Lamar Owen <lamar(dot)owen(at)wgcr(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 01:03:55
Message-ID: 3D3613FB.5D1CA52E@fourpalms.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

> 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.

In the past (and maybe now) there may be reversed order of arguments on
the stack and may be some name mangling from Fortran (I've seen
underscores added to the front of parameters for the linker).

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...

- Thomas

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Darren Ferguson 2002-07-18 01:59:39 Re: DELETE FROM error message
Previous Message Ben Liblit 2002-07-17 23:24:07 type convertability as a checkable constraint