From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.3 required=5.0 tests=BAYES_00,FREEMAIL_FROM, INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,7a41a150d3e3f8bd,start X-Google-Attributes: gid103376,public From: "pit_viper_2000" Subject: Ada calling Fortran or Assembly Date: 1999/06/04 Message-ID: #1/1 X-Deja-AN: 485688018 Followup-To: comp.lang.ada X-Client-NNTP-Posting-Host: buckeye2.eglin.af.mil/129.61.32.10 X-Trace: c01read02-admin.service.talkway.com 928507577 216.200.3.203 (Fri, 04 Jun 1999 07:46:17 PDT) Organization: Talkway, Inc. X-TWRN-Tag: 928507568387 NNTP-Posting-Date: Fri, 04 Jun 1999 07:46:17 PDT Newsgroups: comp.lang.ada Date: 1999-06-04T00:00:00+00:00 List-Id: 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).