comp.lang.ada
 help / color / mirror / Atom feed
From: "pit_viper_2000" <pit_viper_2000@hotmail.com>
Subject: Ada calling Fortran or Assembly
Date: 1999/06/04
Date: 1999-06-04T00:00:00+00:00	[thread overview]
Message-ID: <ZER53.2383$Xr4.20175@c01read02-admin.service.talkway.com> (raw)

Anyone know how to link in Fortran from Ada?  I have about 3,000 lines
of Fortran code that does lots of stuff with some numbers I read in
from a serial port...I don't want to have to rewrite the whole thing in
Ada...I'd rather just make calls to the Fortran subroutines.  I know to
do some pragma Imports and pragma Linker_Options, but I don't know what
exact files to link in with the Linker_Options...nor do I know the
order to link them in.  I was told the order matters.  

Any help would be greatly appreciated.  

NEXT:

If I can't get the Fortran to work, then I'll rewrite that code, but I
still need to get access to some assembly language procedures that the
Fortran was linking to.  But I can't get Ada to link to Assembly
language procedures.  I have MASM 6.11 and the .obj files from that
aren't recognized by the GNAT 3.11 (windows95 version) compiler.  If
someone knows how to write in-line assmebly in Ada, let me know. 
Otherwise, does anyone know how to call the assembly procs from Ada. 
All of the procs are labeled as "far" procs.  As far as I know, the
assembly is set up to be referenced from higher level languages.  Like
I said, it linked to the fortran.  

Again, any help would be greatly appreciated.
--
Posted via Talkway - http://www.talkway.com
Exchange ideas on practically anything (tm).





             reply	other threads:[~1999-06-04  0:00 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1999-06-04  0:00 pit_viper_2000 [this message]
1999-06-04  0:00 ` Ada calling Fortran or Assembly dennison
1999-06-04  0:00   ` pit_viper_2000
1999-06-04  0:00     ` David C. Hoos, Sr.
1999-06-04  0:00     ` dennison
replies disabled

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