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=-0.3 required=5.0 tests=BAYES_00, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,28601b68b0271562 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2002-07-06 04:08:35 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!paloalto-snf1.gtei.net!news.gtei.net!enews.sgi.com!logbridge.uoregon.edu!newsfeed.sunet.se!news01.sunet.se!news.chalmers.se!legolas!nobody From: anders@legolas.gidenstam.org (Anders Gidenstam) Newsgroups: comp.lang.ada Subject: Re: GNAT on SPARC Date: Sat, 6 Jul 2002 13:08:00 +0200 Organization: Chalmers University of Technology Message-ID: References: <3D256669.71819371@space.se> Reply-To: anders@gidenstam.org (Anders Gidenstam) NNTP-Posting-Host: hotlips.cs.chalmers.se Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: nyheter.chalmers.se 1025953700 1661 129.16.225.36 (6 Jul 2002 11:08:20 GMT) X-Complaints-To: abuse@chalmers.se NNTP-Posting-Date: 6 Jul 2002 11:08:20 GMT X-Newsreader: knews 1.0b.1 Xref: archiver1.google.com comp.lang.ada:26900 Date: 2002-07-06T11:08:20+00:00 List-Id: In article <3D256669.71819371@space.se>, Arne Carlsson writes: > Hello, > > I am working with GNAT (in fact GNAT-ORK) for an embedded SPARC sytem > (ERC32 processor). > > I want to use in-line assembler in the Ada code. My question is: are > there any SPARC registers I can use without risk for conflict with > GNAT-use of registers? > > I have tried to find documentation about this item with no result. Read the GNAT inline assembler tutorial at adapower.com, http://www.adapower.com/articles/gnatasm/ and the GNAT reference manual. The tutorial targets x86 but the inline mechanisms are the same, in particular look at the 'Clobber' argument to Asm. Best Regards, Anders Gidenstam -- The trouble with having an open mind, of course, is that people will insist on coming along and trying to put things in it. -- (Terry Pratchett, Diggers) --------------------------------------------------------------------- | Anders Gidenstam | Chalmers University of Technology | | Email: andersg@cs.chalmers.se | WWW: www.cs.chalmers.se/~andersg | ---------------------------------------------------------------------