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 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,610e53a911ec64b3 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 1995-03-27 10:16:14 PST Path: nntp.gmd.de!news.rwth-aachen.de!news.rhrz.uni-bonn.de!news.uni-stuttgart.de!rz.uni-karlsruhe.de!xlink.net!sol.ctr.columbia.edu!howland.reston.ans.net!agate!boulder!news.coop.net!news.den.mmc.com!iplmail.orl.mmc.com!usenet From: Theodore Dennison Newsgroups: comp.lang.ada Subject: Re: Importing C Structures Date: 27 Mar 1995 15:35:39 GMT Organization: IPL InterNetNews site Message-ID: <3l6m0b$pj9@theopolis.orl.mmc.com> References: <3kr4q3$jd9@newsflash.concordia.ca> <1995Mar26.081652.9489@eisner> NNTP-Posting-Host: payday.orl.mmc.com Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 7bit X-URL: news:1995Mar26.081652.9489@eisner Date: 1995-03-27T15:35:39+00:00 List-Id: Keith Thompson wrote: > In article , kst@thomsoft.com (Keith Thompson) writes: > > For an address representation clause, which might be used to access hardware, > optimizing out dead assignments seems quite inappropriate. Is there no > Ada83 method of avoiding such an optimization for such objects? There is no PORTABLE way. Most compiler vendors however will tell you what you can do to avoid this. The DEC Ada compiler, if memory serves, treated any variable associated with an address clause as "volatile" for the scope of the address clause. "Volatile" addresses are not optimized into registers. Again, this is DEC Ada only. Check your vendor docs. T.E.D.