From: mcc@tyrolia.cs.princeton.edu (Martin C. Carlisle)
Subject: Re: Help ADA and Assembly !!! :-(
Date: 1998/01/05
Date: 1998-01-05T00:00:00+00:00 [thread overview]
Message-ID: <68r88p$frf$1@cnn.Princeton.EDU> (raw)
In-Reply-To: 68omkm$orf$1@news2.isdnet.net
In article <68omkm$orf$1@news2.isdnet.net>, jphe <jphe@hol.fr> wrote:
>Hi everybody i have a project that compare ada subprocedure and assembly
>subprocedure but i can't get in ADA the assembly .obj sub-procedure that i
>have made withe TASM could you help me about the use of Pragma import
>because i read the doc of Gnat and ADAGIDE but it doesn't recognize my .obj,
>i send my little source thanks..... JP ( JPHE@HOL.fr )
>
>Exemple is a test of pragma import that must be works with calcul.obj but
>doesn't. It says udefinied reference to "calcul" ???
I believe you want something like the following:
procedure Test2;
pragma Import(Convention => Ada, Entity => Test2, Link_Name =>
"calcul"); -- use whatever name is in .obj in place of "calcul"
-- use Ada's name in place of Test2.
pragma Linker_Options("myobjfile.obj"); -- rename myobjfile to your name
--Martin
--
Martin C. Carlisle, Computer Science, US Air Force Academy
mcc@cs.usafa.af.mil, http://www.usafa.af.mil/dfcs/bios/carlisle.html
DISCLAIMER: This content in no way reflects the opinions, standard or
policy of the US Air Force Academy or the United States Government.
next parent reply other threads:[~1998-01-05 0:00 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <68omkm$orf$1@news2.isdnet.net>
1998-01-05 0:00 ` Martin C. Carlisle [this message]
1998-01-05 0:00 ` Help ADA and Assembly !!! :-( Dmitriy Anisimkov
1998-01-05 0:00 ` Samuel Tardieu
1998-01-05 0:00 ` Robert Dewar
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox