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,751584f55705ddb7 X-Google-Attributes: gid103376,public From: john@assen.demon.co.uk (John McCabe) Subject: Re: Ada is almost useless in embedded systems Date: 1996/02/18 Message-ID: <824684333.9342@assen.demon.co.uk>#1/1 X-Deja-AN: 139972513 x-nntp-posting-host: assen.demon.co.uk references: <823906039.22113@assen.demon.co.uk> <823965654.4500@assen.demon.co.uk> <824165619.14894@assen.demon.co.uk> <824259217.26321@assen.demon.co.uk> newsgroups: comp.lang.ada Date: 1996-02-18T00:00:00+00:00 List-Id: dewar@cs.nyu.edu (Robert Dewar) wrote: >John McCabe said >"If you check the detail of pragma shared, I think you'll find this >does not provide the same facilities as the C 'volatile' attribute. I >have checked this according to my compiler manual, so I do know what >I'm talking about here. >Also, as I've mentioned elsewhere, I know nothing about Ada 95, all my >comments are purely Ada 83." >This is wrong, pragma shared corresponds to pragma Atomic in Ada 95, >not to pragma Volatile (and the volatile keyword in C). I'm sorry Robert but I don't see understand why you are saying this is wrong. I am not suggesting here that there is a correspondence between shared and anything to do with Ada 95. >Volatile does not require atomic access and can be applied to anything. >Atomic (Shared) can only be applied to objects for which atomic access >can be guaranteed, which is likely to be very restrictive. >There is no equivalent of pragma Volatile in Ada 83. I do appreciate the response though as myself and Jon have also been discussing this using email and I was going to attempt to email you for an explanation of pragma volatile. I had a look at John Barnes' book Programming in Ada 95 yesterday and it seems to skimp over it. Additional detail would be appreciated on this one. Best Regards John McCabe