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=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM autolearn=unavailable autolearn_force=no version=3.4.4 X-Received: by 10.129.162.6 with SMTP id z6mr7862083ywg.15.1468035351216; Fri, 08 Jul 2016 20:35:51 -0700 (PDT) X-Received: by 10.157.0.36 with SMTP id 33mr242717ota.15.1468035351119; Fri, 08 Jul 2016 20:35:51 -0700 (PDT) Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!news.eternal-september.org!news.eternal-september.org!feeder.eternal-september.org!news.glorb.com!f89no3614623qtd.0!news-out.google.com!d130ni916ith.0!nntp.google.com!r1no14371553ige.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Fri, 8 Jul 2016 20:35:50 -0700 (PDT) In-Reply-To: <62f6046a-fea2-4478-ab57-8fef3b0cd426@googlegroups.com> Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=71.171.109.232; posting-account=vk6_JwoAAABkMyHO1YfdP69Hm3CpbdGR NNTP-Posting-Host: 71.171.109.232 References: <62f6046a-fea2-4478-ab57-8fef3b0cd426@googlegroups.com> User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: Subject: Re: Ada asm From: Jeremiah Injection-Date: Sat, 09 Jul 2016 03:35:51 +0000 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Xref: news.eternal-september.org comp.lang.ada:31046 Date: 2016-07-08T20:35:50-07:00 List-Id: On Friday, July 8, 2016 at 11:28:58 PM UTC-4, ma74...@gmail.com wrote: > Debated if I should post my question in comp.lang.c++ but opted for comp.= lang.ada instead. I'm perusing Ada code and I'm trying to determine the C+= + equivalents for the following: >=20 >=20 > asm'( ldf =3D> "set_test_reg:"); >=20 >=20 > -- > -- Set System MFT Address Register located at 0x00AD) > -- > asm'( ldf =3D> "mtmft 0x00AD, r1");=20 >=20 >=20 > I'm relatively new to Ada but I saw a link that describe the =3D> as a po= sitional notation. It's not clear what the relationship between ldf and s= et_test_reg is. I suspect ldf is passed into set_test_reg ..who knows. = I perused this guideline - link below but still unclear that the C++ equiva= lent might be. Any help appreciated. >=20 > http://www.ibm.com/developerworks/rational/library/inline-assembly-c-cpp-= guide/ It looks like it is equivalent to basic inline assembly in GCC: https://www.ibiblio.org/gferg/ldp/GCC-Inline-Assembly-HOWTO.html#s4 As opposed to extended assembly you have listed in the guide you posted