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,3f30174aa42f10e5 X-Google-Attributes: gid103376,public From: robert_dewar@my-dejanews.com Subject: Re: How smart are Ada compilers? Date: 1999/03/23 Message-ID: <7d6quk$njb$1@nnrp1.dejanews.com>#1/1 X-Deja-AN: 457776172 References: <7d5n3s$mf8$1@nnrp1.dejanews.com> X-Http-Proxy: 1.0 x4.dejanews.com:80 (Squid/1.1.22) for client 205.232.38.14 Organization: Deja News - The Leader in Internet Discussion X-Article-Creation-Date: Tue Mar 23 01:32:03 1999 GMT Newsgroups: comp.lang.ada X-Http-User-Agent: Mozilla/4.04 [en] (OS/2; I) Date: 1999-03-23T00:00:00+00:00 List-Id: In article <7d5n3s$mf8$1@nnrp1.dejanews.com>, Larry Hazel wrote: > The Ada 83 code (Apex compiler) I am examining uses > machine code to access > 486 block move instructions to copy data into and out of > memory shared > between multiple boards. I would think that an Ada > compiler targeted to a > 486 would use such instructions to implement Ada > assignments of large objects > without resorting to machine code. Does Apex (GNAT, > Aonix, Green Hills, RR, > etc) generate such code automatically? Very probably so, (certainly for GNAT the answer is yes). However, to rely on this would be very bad coding style. If the board in question requires the generation of certain machine instructions to work right, then it is correct (really essential) to use the corresponding machine insertion, rather than rely on what the compiler happens to be doing today! -----------== Posted via Deja News, The Discussion Network ==---------- http://www.dejanews.com/ Search, Read, Discuss, or Start Your Own