From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: Date: Fri, 9 Dec 2005 15:30:19 -0500 From: Russ Cox To: Fans of the OS Plan 9 from Bell Labs <9fans@cse.psu.edu> Subject: Re: [9fans] Re: const In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <3e1162e60512090825n4d944cc8yb2f668e3deb64dec@mail.gmail.com> <4399B85E.1050706@lanl.gov> Topicbox-Message-UUID: c05e6732-ead0-11e9-9d60-3106f5b1d025 > > I think I missed the part of the discussion that explains how to do > > mmap'ed I/O without volatile, and a good idea of how to tweak the > > By writing leaf functions in assembly? This is an awful approach. We have many drivers that compile unchanged on multiple architectures. Having to write them in assembly just because the C compiler is too clever is just broken. As I pointed out, we don't have this problem in the Plan 9 C compilers anyway. And the people using smarter-than-thou C compilers like gcc can sprinkle their code with volatiles. Russ