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.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,edb329885d962c1d X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2003-09-05 17:22:34 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!headwall.stanford.edu!newshub.sdsu.edu!elnk-nf2-pas!newsfeed.earthlink.net!wn14feed!worldnet.att.net!204.127.198.203!attbi_feed3!attbi_feed4!attbi.com!rwcrnsc54.POSTED!not-for-mail From: Freejack Subject: Re: Ada and ASM Newsgroups: comp.lang.ada Message-ID: References: User-Agent: Pan/0.11.4 (Unix) Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Comment-To: "David C. Hoos, Sr." NNTP-Posting-Host: 12.245.85.50 X-Complaints-To: abuse@comcast.net X-Trace: rwcrnsc54 1062807753 12.245.85.50 (Sat, 06 Sep 2003 00:22:33 GMT) NNTP-Posting-Date: Sat, 06 Sep 2003 00:22:33 GMT Organization: Comcast Online Date: Sat, 06 Sep 2003 00:22:33 GMT Xref: archiver1.google.com comp.lang.ada:42197 Date: 2003-09-06T00:22:33+00:00 List-Id: On Thu, 04 Sep 2003 07:43:36 -0400, David C. Hoos, Sr. wrote: > ----- Original Message ----- > From: "luiX_" > Newsgroups: comp.lang.ada > To: > Sent: September 04, 2003 2:47 AM > Subject: Ada and ASM > > >> Hi all, I want ot include and assembler rutine in an Ada program, does >> anyone know how to do that? It will be very helpfully. > See the Adqa reference manual section on machine code insertions, and > the corresponding part of your Ada compiler's documentation. As far as I can tell the GNAT system expects everything to be in GAS (Gnu Assembler) syntax and it expects the Assembler to be GAS. I've not found any documentation anywhere explaining how to use something like Nasm(Netwide Assembler), Tasm(Turbo Assembler), Fasm, ect... or anything besides Gas with GNAT. Dont misunderstand me. GNAT is awsome. But it seems a little Amish in this respect. I could direct the backend GCC to link in my Nasm code, but then that means usually dicking with C calling conventions in tedium. Any pointers? Freejack