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=-0.7 required=5.0 tests=BAYES_00,GAPPY_SUBJECT, INVALID_DATE autolearn=no autolearn_force=no version=3.4.4 Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!wuarchive!zaphod.mps.ohio-state.edu!cis.ohio-state.edu!sei.cmu.edu!jbg From: jbg@sei.cmu.edu (John Goodenough) Newsgroups: comp.lang.ada Subject: Re: Types defining h/w r/o or w/o registers Message-ID: <26529@as0c.sei.cmu.edu> Date: 5 Jun 91 13:59:54 GMT References: <3949@titan.tsd.arlut.utexas.edu> <1991Jun2.095459.1@east.pima.edu> <1991Jun3.075741.1945@weyrich.UUCP> <1991Jun4.144821.14504@bohra.cpg.oz.au> Sender: netnews@sei.cmu.edu In-reply-to: als@bohra.cpg.oz.au's message of 4 Jun 91 14:48:21 GMT List-Id: In article Re: Types defining h/w r/o or w/o registers of 4 Jun 91 14:48:21 GMT als@bohra.cpg.oz.au (Anthony Shipman) writes: >Wasn't there something in the tasking part of the language for this? Ada's >multi-tasking model is shared memory between tasks. I vaguely recall there was >a pragma, or something in the machine-dependant chapter, to declare certain >memory locations as volatile. Certainly what you have is logically equivalent >to multi-tasking except that one of the tasks is implemented in hardware. You are talking here about pragma SHARED, which is not suitable for use with volatile data. The Ada 9X study report on shared variables (available from the usual sources) discusses why pragma SHARED doesn't fit the bill. John B. Goodenough Goodenough@sei.cmu.edu Software Engineering Institute 412-268-6391