From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Thread: fdd80,20cce773a38e2849 X-Google-NewGroupId: yes X-Google-Thread: 1164f8,20cce773a38e2849 X-Google-NewGroupId: yes X-Google-Thread: ffc31,20cce773a38e2849 X-Google-NewGroupId: yes X-Google-Attributes: gide311f70d09,gidd180ab3bd8,gidf4c4f7386e,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!news2.google.com!news.glorb.com!feed.news.qwest.net!mpls-nntp-04.inet.qwest.net!news.qwest.net!not-for-mail Date: Tue, 10 May 2011 12:16:00 -0500 From: G Cornelius Organization: Dis User-Agent: Debian Thunderbird 1.0.2 (X11/20070113) X-Accept-Language: en-us, en MIME-Version: 1.0 Newsgroups: comp.os.vms,alt.sys.pdp11,comp.sys.dec,vmsnet.pdp-11 Subject: Re: Y3K for PDP-11 Operating Systems References: <4d99c3b6$0$23756$14726298@news.sunsite.dk> <4dc032d4$0$313$14726298@news.sunsite.dk> <7d287cc3-4605-49a0-826e-fb92fc14e98d@j28g2000vbp.googlegroups.com> <92bjl8F19sU1@mid.individual.net> <92d114Fhm7U1@mid.individual.net> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Message-ID: <4dc972d1$0$73606$815e3792@news.qwest.net> NNTP-Posting-Host: c95a5791.news.qwest.net X-Trace: DXC=ajm5IR:YLkRE>S1?;<3miQF85SKJoGf>TCgFg On 2011-05-10 07.29, Bob Koehler wrote: >> I never did understand why the VAX C RTL did a LOCC first, instead >> of a MOVTUC with a straight-through translation table and null escape >> character. I assumed MOVTUC was even slower. > > > I'm pretty sure that on later machines, MOVTUC is an emulated > instruction, so you don't want to use it unless you really want the > special features. For the simple C string case, having that translation > table is a small memory cost, but it also hurts performance. > But from a purity point of view, yes, MOVTUC should also be able to do it. References to a 1-1 MOVTUC table are basically wasted memory accesses, and, in fact, will be mostly cache misses until a significant proportion of the table has been loaded. Not to mention having flushed information out of cache, resulting in likely cache misses later. Also: these are per-byte cache misses, where actual data fetches should load four, eight, or even more soon to be used bytes into cache whenever a miss occurs. George