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-05 08:47:42 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!proxad.net!freenix!enst.fr!not-for-mail From: "Robert C. Leif" Newsgroups: comp.lang.ada Subject: RE: Ada and ASM Date: Fri, 5 Sep 2003 08:44:22 -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 1062776737 46357 137.194.161.2 (5 Sep 2003 15:45:37 GMT) X-Complaints-To: usenet@enst.fr NNTP-Posting-Date: Fri, 5 Sep 2003 15:45:37 +0000 (UTC) To: "'Simon Wright'" , Return-Path: X-Mailer: Microsoft Office Outlook, Build 11.0.5329 Thread-Index: AcNzubdKBx0mZO+nT3SiQHMPOqEMDAACj8wg X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 In-Reply-To: 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:42181 Date: 2003-09-05T08:44:22-07:00 Although GNAT has moved in this direction, it appears to be far from a true Ada syntax representation. From: http://gcc.gnu.org/onlinedocs/gnat_ug_unx/The-Volatile-Parameter.html#The%20 Volatile%20Parameter Asm ("movl %0, %%ebx" & LF & HT & "movl %%ebx, %1", Inputs => Unsigned_32'Asm_Input ("g", Var_In), Outputs => Unsigned_32'Asm_Output ("=g", Var_Out), Clobber => "ebx", Volatile => True); The actual Asm statement still is a quoted string. It is not Ada syntax. Bob Leif Robert C. Leif, Ph.D. Email rleif@rleif.com -----Original Message----- From: Simon Wright [mailto:simon@pushface.org] Sent: Thursday, September 04, 2003 10:47 PM To: comp.lang.ada@ada.eu.org Subject: Re: Ada and ASM luixal@softhome.net (luiX_) writes: > 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. If you are using GNAT, see http://gcc.gnu.org/onlinedocs/gnat_ug_unx/Inline-Assembler.html#Inline%20Ass embler