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: fd6dd,c78177ec2e61f4ac X-Google-Attributes: gidfd6dd,public X-Google-Thread: 103376,c78177ec2e61f4ac X-Google-Attributes: gid103376,public From: gwinn@res.ray.com (Joe Gwinn) Subject: Re: ada and robots Date: 1997/06/17 Message-ID: #1/1 X-Deja-AN: 253017986 References: <338CDA96.53EA@halcyon.com> <338F5D7D.6C03@tiac.net> <338F9D05.5EB3@bix.com> <5mqpj3$bc5$1@goanna.cs.rmit.edu.au> <33930245.12A1@sprintmail.com> <5mv984$7kn@news.emi.com> <33961528.2A9A@sprintmail.com> Organization: Raytheon Electronic Systems Newsgroups: comp.robotics.misc,comp.lang.ada Date: 1997-06-17T00:00:00+00:00 List-Id: In article , dewar@merv.cs.nyu.edu (Robert Dewar) wrote: > < > < all believed that only they changed memory, so it was OK to cache data > items in CPU registers for long periods of time. For the most part, there > was no reliable (and portable) way to tell the compiler different, so we > performed various dances to ensure that Ada83 never knew the whole truth.>> > > > Well for items that could be kept in registers, e.g. small scalars, which > typically corresponds to the need for messing with IO mapped memory, I fail > to see why the standard feature - pragma Shared - would not be exactly > what you needed. Please explain why pragma Shared did not do the job. if > you were using a compiler that did not implement pragma Shared, then it > was not an Ada 83 compiler, but a compiler for a subset of the language. The problem was that not all Ada83 compilers implemented pragma shared correctly, or the same, so we couldn't depend on pragma shared. It was simpler, and --oddly-- more portable to just use assembly. Ada95 is supposed to have fixed this problem, which was shared by pragma volatile. > <> > > That is nonsense. Languages have HUGE differences in abstraction capabilities. > Anyone who thinks COBOL has the same abtraction capabilities as say, Pascal, > knows NOTHING about either language. Ahh ... let's talk only about modern, mainstream languages, like Ada and C. Or, we need also to pull in every cat and dog research language that ever was, and I grant you that many of them are cripples. Anyway, it seems to matter more *who* is doing the abstracting than the details of the language they use. Joe Gwinn