From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Thread: f7344,ff7071ebb62b149f X-Google-NewGroupId: yes 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: gid3717dac89a,gide311f70d09,gidd180ab3bd8,gidf4c4f7386e,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news4.google.com!feeder.news-service.com!de-l.enfer-du-nord.net!feeder2.enfer-du-nord.net!cs.uu.nl!news.stack.nl!newsfeed.Update.UU.SE!news.Update.UU.SE!not-for-mail From: Johnny Billquist Newsgroups: comp.os.vms,alt.sys.pdp11,comp.sys.dec,vmsnet.pdp-11 Subject: Re: Y3K for PDP-11 Operating Systems Date: Tue, 10 May 2011 09:29:58 -0600 Organization: Update Computer Club Message-ID: 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> NNTP-Posting-Host: c-76-120-66-180.hsd1.co.comcast.net Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: Iltempo.Update.UU.SE 1305041402 30738 76.120.66.180 (10 May 2011 15:30:02 GMT) X-Complaints-To: newsmaster@Update.UU.SE NNTP-Posting-Date: Tue, 10 May 2011 15:30:02 +0000 (UTC) User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv:1.9.2.17) Gecko/20110414 Thunderbird/3.1.10 In-Reply-To: Xref: g2news1.google.com comp.os.vms:40435 alt.sys.pdp11:2125 comp.sys.dec:3330 vmsnet.pdp-11:536 On 2011-05-10 07.29, Bob Koehler wrote: > In article, Johnny Billquist writes: >> >> Hmm. Memory alignment issues... Good point. >> Otherwise, I'm also pretty sure that a function like strcpy() is much >> better to do on your own, as the VAX really don't have a good way of >> implementing that. Doing first a LOCC to get the length, and then a MOVC >> to move the string will surely be less efficient than just doing a MOV >> followed by a conditional branch to loop... Obviously, for C stuff, >> anything dealing with strings is opposed to how a VAX wants things. :-) > > 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 > charater. 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. > The need to find that null character, in any case, always seemed to be > one more reason to use a better HLL. :-) Johnny