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, MSGID_RANDY autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,251afb8f1c322bf0 X-Google-Attributes: gid103376,public From: Robert Dewar Subject: Re: Caching & Annex C.6 Date: 1999/09/08 Message-ID: <7r4fao$h7o$1@nnrp1.deja.com>#1/1 X-Deja-AN: 522324364 References: <7r1l93$9lq4@svlss.lmms.lmco.com> X-Http-Proxy: 1.0 x28.deja.com:80 (Squid/1.1.22) for client 205.232.38.14 Organization: Deja.com - Share what you know. Learn what you don't. X-Article-Creation-Date: Wed Sep 08 01:49:15 1999 GMT X-MyDeja-Info: XMYDJUIDrobert_dewar Newsgroups: comp.lang.ada X-Http-User-Agent: Mozilla/4.04 [en] (OS/2; I) Date: 1999-09-08T00:00:00+00:00 List-Id: In article <7r1l93$9lq4@svlss.lmms.lmco.com>, dkristol@see-my.sig wrote: > I work with real-time embedded systems, and we use pragma > Volatile to mark variables that represent (and are located > on) memory mapped registers. The data must be written to > the memory mapped register when that code executes. > Likewise, many of those registers return values set by > hardware, so reads can't come from the cache. But usually the ensurance of non-caching of these addresses will be done at the hardware level, it is not something the compiler worries about. The compiler's responsibility is simply to issue loads and stores, someone else must make sure that the loads and stores work as planned (for example on the MIPS one bit of the address space is used to indicate cachability). There are machines with different loads and stores to control caching, but not many! Sent via Deja.com http://www.deja.com/ Share what you know. Learn what you don't.