Re: Fortran functions?

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Lamar Owen <lamar(dot)owen(at)wgcr(dot)org>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Fortran functions?
Date: 2002-07-17 03:30:58
Message-ID: 10701.1026876658@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Lamar Owen <lamar(dot)owen(at)wgcr(dot)org> writes:
> Has anyone here successfully used Fortran functions in PostgreSQL
> using g77 as the compiler?

No ... but g77 is supposed to produce C-compatible object code as long
as the Fortran isn't too oddball. I've called g77 Fortran code from C
myself. (Not sure what you're supposed to do if the Fortran code wants
to pass parameters through unnamed COMMON blocks, or other weirdnesses
:-()

I'd bet you could make it work with at most a thin layer of C wrapper
code. Are you running into any specific problems?

regards, tom lane

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Steve Lane 2002-07-17 03:40:14 Logging SQL queries?
Previous Message Tom Lane 2002-07-17 03:22:57 Re: OIDs (Or: another RTFM question?)