comp.lang.ada
 help / color / mirror / Atom feed
* How To Compile Ada Prog Interfaced With Fortran
@ 1998-09-23  0:00 Samir N. Muhammad
  1998-09-23  0:00 ` David C. Hoos, Sr.
  1998-09-23  0:00 ` Samuel Tardieu
  0 siblings, 2 replies; 12+ messages in thread
From: Samir N. Muhammad @ 1998-09-23  0:00 UTC (permalink / 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,




^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~1998-10-03  0:00 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1998-09-23  0:00 How To Compile Ada Prog Interfaced With Fortran Samir N. Muhammad
1998-09-23  0:00 ` 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     ` Alain Le Guennec
1998-09-23  0:00     ` Robert I. Eachus
1998-09-23  0:00     ` Gisle S{lensminde
1998-09-23  0:00     ` Larry Kilgallen
1998-09-24  0:00     ` Ken Thomas
1998-09-24  0:00       ` dewarr
1998-10-03  0:00   ` bglbv

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