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,23a17bbd96d53327 X-Google-Attributes: gid103376,public From: robert_dewar@my-dejanews.com Subject: Re: Assembler in Ada? Date: 1999/01/25 Message-ID: <78iho6$4d3$1@nnrp1.dejanews.com>#1/1 X-Deja-AN: 436737219 References: <369C5E08.69727537@mbox5.swipnet.se> <78a32f$dbr$1@remarQ.com> <78fvjm$82t$1@nnrp1.dejanews.com> <78hvth$m36$1@remarQ.com> X-Http-Proxy: 1.0 x7.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: Mon Jan 25 19:47:22 1999 GMT Newsgroups: comp.lang.ada X-Http-User-Agent: Mozilla/4.04 [en] (OS/2; I) Date: 1999-01-25T00:00:00+00:00 List-Id: In article <78hvth$m36$1@remarQ.com>, "news.oxy.com" wrote: > It sounds very funny to hear from people who did not do > something (intentionally or not) that someone, who filled > that gap, did not do it very good. It is better to say > thanks that this has been done and make necessary > improvements in documentation and provide further better > examples. The most useful thing you can do is to read the gcc manual carefully, and make suggestions as to how the documentation there on the use of the asm feature can be improved. Then send those suggestions to the FSF, or to us, we can pass them on!> > > Wrong, wrong and again wrong. > If anyone goes down to assembler level , he/she does this > to get direct access to processor registers and set of > operations that can be performed on them and machine > memory otherwise there is no need to go down to such low > level. You definitely need to read the GCC manual, I think you have missed the whole point of how this feature integrates with the RTL approach used in the backend of gcc. Yes, this is quite a complicated feature to understand and use, but also very powerful. > Again, this is just an example how to preserve registers > that will be spoiled by the Asm code and nothing more. > Usually you do not need to preserve eax at all. Again, read the GCC manual to better understand how the clobbers argument works, sounds like you are a bit confused (which is not surprising this is tricky stuff!) > Again, this is just an example how to say translator not > to try to improve your code and nothing more. > There is no need to go into deep details. Again, you are confused as to the semantics here. Volatile does not say "do not optimize", it is a semantic statement about side effects of an instruction (for example, an IN or OUT instruction on the ia32 would typically be labeled as volatile). -----------== Posted via Deja News, The Discussion Network ==---------- http://www.dejanews.com/ Search, Read, Discuss, or Start Your Own