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=-2.9 required=5.0 tests=BAYES_00,MAILING_LIST_MULTI autolearn=unavailable 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-04 19:46:29 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.stueberl.de!proxad.net!usenet-fr.net!enst.fr!not-for-mail From: "Robert C. Leif" Newsgroups: comp.lang.ada Subject: RE: Ada and ASM Date: Thu, 4 Sep 2003 19:42:51 -0700 Organization: ENST, France Message-ID: NNTP-Posting-Host: marvin.enst.fr Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: avanie.enst.fr 1062729909 44251 137.194.161.2 (5 Sep 2003 02:45:09 GMT) X-Complaints-To: usenet@enst.fr NNTP-Posting-Date: Fri, 5 Sep 2003 02:45:09 +0000 (UTC) To: "Comp. Lang. Ada" Return-Path: X-Mailer: Microsoft Office Outlook, Build 11.0.5329 Thread-Index: AcNzR436Cqf8y/5bS7ak7MS8HgYQVwADutGw X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 In-Reply-To: <3F57932B.8010204@nowhere.com> X-BeenThere: comp.lang.ada@ada.eu.org X-Mailman-Version: 2.1.2 Precedence: list List-Id: comp.lang.ada mail to news gateway List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Xref: archiver1.google.com comp.lang.ada:42159 Date: 2003-09-04T19:42:51-07:00 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