Path: utzoo!mnetor!uunet!husc6!mailrus!ames!oliveb!sun!limes From: limes@sun.uucp (Greg Limes) Newsgroups: comp.lang.c Subject: Re: Optimization, volatile (was Re: volatile) Message-ID: <52212@sun.uucp> Date: 5 May 88 23:04:21 GMT References: <13074@brl-adm.ARPA> <2003@rtech.UUCP> <503@wsccs.UUCP> <536@sol.warwick.ac.uk> Reply-To: limes@sun.UUCP (Greg Limes) Organization: Sun Microsystems, Mountain View Lines: 17 In article <536@sol.warwick.ac.uk> cudcv@cu.warwick.ac.uk (Rob McMahon) writes: >It's been said before, but some people seem to have missed it ... how do >you use #pragma to specify all of: > > volatile int *p; > int *volatile p; > volatile int *volatile p; It's been said before, but some people seem to have missed it ... volatile int *p; -> #pragma volatile (*p) int *volatile p; -> #pragma volatile (p) volatile int *volatile p; -> #pragma volatile (p, *p) Lets have volatile in the language, but not for the wrong reasons. -- Greg Limes [limes@sun.com] Illigitimi Non Carborundum