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 12:13:55 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.stueberl.de!teaser.fr!enst.fr!not-for-mail From: Simon Wright Newsgroups: comp.lang.ada Subject: Re: Ada and ASM Date: Fri, 5 Sep 2003 20:09:15 +0100 Organization: ENST, France Message-ID: References: NNTP-Posting-Host: marvin.enst.fr X-Trace: avanie.enst.fr 1062789144 46808 137.194.161.2 (5 Sep 2003 19:12:24 GMT) X-Complaints-To: usenet@enst.fr NNTP-Posting-Date: Fri, 5 Sep 2003 19:12:24 +0000 (UTC) Cc: comp.lang.ada@ada.eu.org To: rleif@rleif.com Return-Path: In-reply-to: (rleif@rleif.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:42187 Date: 2003-09-05T20:09:15+01:00 > From: "Robert C. Leif" > 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. I do not understand how it could possibly "[be] Ada syntax". OP wanted to include an asm *routine*, I think, so perhaps what is wanted instead is a pragma Import (Asm, ...)? (if suoported). You could always write the asm routine using C calling conventions, whatever they are (if different from asm) and use pragma Import (C, ...). As always, and as others have said, RTFM!