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.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,82e0b6ffdea4f90d X-Google-Attributes: gid103376,public From: dewar@cs.nyu.edu (Robert Dewar) Subject: Re: Specific Machine Instructions in GNAT Date: 1996/08/06 Message-ID: #1/1 X-Deja-AN: 172450924 references: <4u5r7n$3iji@news-s01.ny.us.ibm.net> organization: Courant Institute of Mathematical Sciences newsgroups: comp.lang.ada Date: 1996-08-06T00:00:00+00:00 List-Id: Anthony says "In "Ada as a Second Language", by Norman H. Cohen, section 19.7.3, a mechanism is described for generating short sequences of specific machine instructions. I can't seem to find this capability in GNAT. Does GNAT have such a capability? If not, are there plans to add this capability later?" GNAT does not have this capability, but it will be added in the very near future, we just did most of the work for this feature, and it may make it into the next release, or otherwise in the one immediately after. We will allow both machine instruction instrinsic subprograms, and code statements. Both symbolic and absolute register names can be used, as well as class designators for classes of registers. Full integration with references to Ada expressions and variables is provided. The resulting routines mey be inlined. The feature is modeled on what is available in GNU C, see he GNU C manual for full details.