Path: utzoo!attcan!uunet!jarthur!usc!apple!motcsd!hpda!hpcuhb!hpcllla!hpclisp!hpclwjm!walter From: walter@hpclwjm.HP.COM (Walter Murray) Newsgroups: comp.lang.c Subject: Re: Compilers and programming style (was Re: A question of style) Message-ID: <660071@hpclwjm.HP.COM> Date: 12 Jan 90 19:59:45 GMT References: <564@mwtech.UUCP> Organization: Hewlett-Packard Calif. Language Lab Lines: 15 > volatile int *p; > *p; /* has side effects and must not be optimized away */ > Just curious - what kind of code should be generated for the above > C fragment? The Standard says, "What constitutes an access to an object that has volatile-qualified type is implementation-defined." Section 3.5.3 In other words, when you buy an ANSI-conforming C, it will be accompanied by a document that will define the semantics of the fragment above. Walter Murray ----------