comp.lang.ada
 help / color / mirror / Atom feed
From: "Robert C. Leif" <rleif@rleif.com>
To: "Comp. Lang. Ada" <comp.lang.ada@ada.eu.org>
Subject: RE: Ada and ASM
Date: Thu, 4 Sep 2003 19:42:51 -0700
Date: 2003-09-04T19:42:51-07:00	[thread overview]
Message-ID: <mailman.5.1062729897.295.comp.lang.ada@ada.eu.org> (raw)
In-Reply-To: <3F57932B.8010204@nowhere.com>

A long time ago, someone I believe it was at Whitesmiths wrote an assembler
in the syntax of a higher level language. I can not understand why we need
two different syntaxes for assembler and Ada. I would hope that someone
would create an assembler that was completely written in Ada with Ada
syntax. Although the individual commands of microprocessors differ, a common
syntax can be used to describe their commands.
Bob Leif
Robert C. Leif, Ph.D.
Email rleif@rleif.com

-----Original Message-----
From: Leif Holmgren [mailto:nobody@nowhere.com] 
Sent: Thursday, September 04, 2003 12:32 PM
To: comp.lang.ada@ada.eu.org
Subject: Re: Ada and ASM

luiX_ wrote:
> 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.

As someone else said, Ada RM and Compiler manuals are the first steps. 
Note that if you are using GNAT, most things are in the gcc documentation!

If you manage to decode the gcc manual, please write something useful 
down on how it should be done.

I'm currently also trying to include some asm code in my program (using 
Gnat). I have totally failed to get the interfacing part going. I know 
my statement sequence is correct since I first coded it using Borland 
Delphi's inline assembler. I guess I will end up wrapping my code in a DLL.

/Leif





  reply	other threads:[~2003-09-05  2:42 UTC|newest]

Thread overview: 26+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-09-04  7:47 Ada and ASM luiX_
2003-09-04 11:43 ` David C. Hoos, Sr.
2003-09-04 15:07   ` Martin Krischik
2003-09-06  0:22   ` Freejack
2003-09-06  2:18     ` Jerry van Dijk
2003-09-06 12:59       ` Jeffrey Creem
2003-09-06 15:33         ` Wes Groleau
2003-09-06 17:11           ` Jerry van Dijk
2003-09-07  4:02             ` Wes Groleau
2003-09-06 17:16         ` Jerry van Dijk
2003-09-04 14:47 ` Martin Krischik
2003-09-04 15:08 ` Martin Krischik
2003-09-04 19:31 ` Leif Holmgren
2003-09-05  2:42   ` Robert C. Leif [this message]
2003-09-05 21:32   ` Jerry van Dijk
2003-09-23 10:45   ` Jacob Sparre Andersen
2003-09-05  5:46 ` Simon Wright
2003-09-05 15:44   ` Robert C. Leif
     [not found] <E19vIlZ-0002mO-Fg@punt-3.mail.demon.net>
2003-09-05 19:09 ` Simon Wright
2003-09-05 21:38   ` Jerry van Dijk
2003-09-06  6:11     ` David Marceau
2003-09-07  7:18       ` sk
     [not found] <200309051909.h85J9Flb002351@smaug.pushface.org>
2003-09-06  0:15 ` Robert C. Leif
     [not found] <E19vQkV-0006EH-Ek@punt-3.mail.demon.net>
2003-09-06  7:25 ` Simon Wright
2003-09-06 13:14   ` Marin David Condic
2003-09-06 15:25   ` Wes Groleau
replies disabled

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