comp.lang.ada
 help / color / mirror / Atom feed
From: "Samir N. Muhammad" <sam818@felix.seas.gwu.edu>
Subject: How To Compile Ada Prog Interfaced With Fortran
Date: 1998/09/23
Date: 1998-09-23T00:00:00+00:00	[thread overview]
Message-ID: <QA8O1.458$4%.8751761@fozzy.nit.gwu.edu> (raw)

Hello Everybody

Could any one tell me what are the steps for compiling, binding, 
and linking 
an Ada program interfaced with an intrinsic Fortran function(e.g. the
MATMUL or DOT_PRODUCT). For example, an Ada program interfaced with
Fortran might look like

procedure Linear_Algebra is
......


function Dot_Product(V1:Vector_Type;V2:Vector_Type) return Scalar_Type;
pragma Import(Fortran,Dot_Product,"DOT_PRODUCT") ;


.....


begin	-- Linear_Algebra

.....

     S := Dot_Product(Vect1,Vect2) ;
......
end Linear_Algebra ;



Now anyone could argue: why not write the Dot_Product in Ada? I used Dot_Product
for illustration. The larger picture is how to utilize the already available and
highly optimized linear algebra packages such as BLAS(Basic Linear Algebra 
Subroutines) that are written in Fortran.  




Any help is highly appreciated.





Samir Muhammad,




             reply	other threads:[~1998-09-23  0:00 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1998-09-23  0:00 Samir N. Muhammad [this message]
1998-09-23  0:00 ` How To Compile Ada Prog Interfaced With Fortran David C. Hoos, Sr.
1998-09-24  0:00   ` dewarr
1998-09-23  0:00 ` Samuel Tardieu
1998-09-23  0:00   ` oliver
1998-09-23  0:00     ` Gisle S{lensminde
1998-09-23  0:00     ` Larry Kilgallen
1998-09-23  0:00     ` Robert I. Eachus
1998-09-23  0:00     ` Alain Le Guennec
1998-09-24  0:00     ` Ken Thomas
1998-09-24  0:00       ` dewarr
1998-10-03  0:00   ` bglbv
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox