From: Johnny Billquist <bqt@softjar.se>
Subject: Re: Y3K for PDP-11 Operating Systems
Date: Mon, 09 May 2011 19:36:58 -0600 [thread overview]
Message-ID: <iqa4rr$ebl$1@Iltempo.Update.UU.SE> (raw)
In-Reply-To: <92re7gF8btU1@mid.individual.net>
On 2011-05-09 18.12, vandys@vsta.org wrote:
> In alt.sys.pdp11 Johnny Billquist<bqt@softjar.se> wrote:
>> I know that for some things, actually coding using more primitive
>> instructions on the (older) VAXen turned out to be faster than to use
>> the fancy instructions, but I would not have thought that was true for
>> things like MOVC or LOCC, but I might very well be wrong.
>
> I'm pretty sure we ended up with a hand coded bcopy() back in the day.
> It might've been that we could do optional initial odd, and then move
> as words. I think I heard that later Vaxen microcode would do that too.
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. :-)
>> (The big win, however, was
>> obviously the loads of actual code needed to do a context switch which
>> was reduced to just a few bytes on a VAX. :-) )
>
> I'm pretty sure I remember that BSD on the Vax never ended up using
> the high level task instructions. I can remember trying to make it
> line up, and ending up deciding it cost more than it saved.
I know that NetBSD/VAX use those, and I'm almost sure you cannot do a
context switch without them.
> No doubt VMS did, as otherwise, well, what was the point? :->
:-)
> This all dribbles back to that old RISC versus CISC argument. I think the
> MIPS context switching I coded was faster than anything comparable on a x86
> or Vax. OTOH, MIPS was never able to beat the TLB miss performance of the
> x86. The ultimate (implied) instruction!
Indeed. But context switching goes a bit beyond the RISC/CISC as well.
It's also a question of how much is held in a context (admittedly, I
suspect this sortof follows hand in hand with CISC vs. RISC, but
anyway), if you have lots of context, saving it will take more time than
if you have just a little. And that means both processor state, as well
as MMU state, and what else there might be in things like cache
invalidations.
Johnny
next prev parent reply other threads:[~2011-05-10 1:36 UTC|newest]
Thread overview: 146+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-04-04 13:12 Y3K for PDP-11 Operating Systems Jerome H. Fine
2011-04-04 13:40 ` Dennis Grevenstein
2011-04-04 18:58 ` Jerome H. Fine
2011-04-04 20:55 ` Johnny Billquist
2011-04-30 22:27 ` billy
2011-05-01 14:01 ` Jerome H. Fine
2011-05-01 17:27 ` Johnny Billquist
2011-05-02 0:53 ` Jerome H. Fine
2011-05-01 21:16 ` glen herrmannsfeldt
2011-05-02 0:54 ` Jerome H. Fine
2011-05-02 4:07 ` Johnny Billquist
2011-05-02 13:37 ` Jerome H. Fine
2011-05-02 15:39 ` Johnny Billquist
2011-05-02 5:15 ` glen herrmannsfeldt
2011-05-03 1:20 ` jjh
2011-05-03 13:18 ` Bob Koehler
2011-05-03 16:51 ` Jerome H. Fine
2011-05-03 17:50 ` VAXTREK Bob Koehler
[not found] ` <j0Y9tTme9SEK@eisner.encompasserve.org>
2011-05-03 18:39 ` Y3K for PDP-11 Operating Systems Henry Crun
2011-05-03 19:56 ` Jerome H. Fine
2011-05-03 22:52 ` onedbguru
2011-05-04 0:07 ` Bill Gunshannon
2011-05-04 5:16 ` Richard B. Gilbert
2011-05-04 13:01 ` Bill Gunshannon
2011-05-04 14:19 ` Richard B. Gilbert
2011-05-04 14:58 ` Scott Dorsey
2011-05-04 16:33 ` Bill Gunshannon
2011-05-05 1:51 ` Richard B. Gilbert
2011-05-06 18:08 ` G Cornelius
2011-05-06 18:47 ` Richard B. Gilbert
2011-05-06 22:13 ` Johnny Billquist
2011-05-08 1:00 ` Rich Alderson
2011-05-08 1:51 ` Johnny Billquist
2011-05-08 11:19 ` Richard B. Gilbert
2011-05-09 21:32 ` Rich Alderson
2011-05-09 15:40 ` Rob Brown
2011-05-09 15:43 ` Johnny Billquist
2011-05-09 21:47 ` vandys
2011-05-09 22:05 ` Johnny Billquist
2011-05-09 23:05 ` vandys
2011-05-09 23:20 ` Johnny Billquist
2011-05-10 0:12 ` vandys
2011-05-10 1:36 ` Johnny Billquist [this message]
2011-05-10 2:01 ` glen herrmannsfeldt
2011-05-10 13:31 ` Bob Koehler
[not found] ` <iqa6a7$gu8$1@dont-Organization: Encompasserve <fXiU1i6RQYr0@eisner.encompasserve.org>
2011-05-10 16:56 ` John Wallace
2011-05-10 17:50 ` Bob Koehler
2011-05-11 16:04 ` G Cornelius
2011-05-04 17:02 ` Johnny Billquist
2011-05-04 17:20 ` Bob Koehler
2011-05-04 18:10 ` glen herrmannsfeldt
2011-05-04 19:21 ` John Wallace
2011-05-04 22:06 ` MetaEd
2011-05-05 3:17 ` Johnny Billquist
2011-05-10 13:20 ` Bob Koehler
2011-05-10 13:29 ` Bob Koehler
2011-05-10 15:29 ` Johnny Billquist
2011-05-10 17:16 ` G Cornelius
2011-05-10 17:45 ` Bob Koehler
2011-05-10 21:34 ` Johnny Billquist
2011-05-10 17:58 ` Bob Koehler
2011-05-10 21:36 ` Johnny Billquist
2011-05-03 16:38 ` Jerome H. Fine
2011-05-03 11:28 ` paramucho
2011-05-03 16:09 ` Jerome H. Fine
2011-05-23 3:41 ` billy
2011-05-23 4:51 ` Johnny Billquist
2011-05-23 14:47 ` jjh
2011-05-23 15:04 ` Bill Gunshannon
2011-05-23 22:52 ` Johnny Billquist
2011-05-24 0:16 ` Bill Gunshannon
2011-05-24 0:40 ` Johnny Billquist
2011-05-24 12:58 ` Bill Gunshannon
2011-05-24 14:02 ` glen herrmannsfeldt
2011-05-24 14:36 ` Johnny Billquist
2011-05-24 16:42 ` Bill Gunshannon
2011-05-24 18:17 ` Johnny Billquist
2011-05-24 20:07 ` Bill Gunshannon
2011-05-25 1:07 ` Rich Alderson
2011-05-25 10:34 ` Johnny Billquist
2011-05-25 15:46 ` Bill Gunshannon
2011-05-25 23:00 ` Johnny Billquist
2011-05-26 15:50 ` Fritz Wuehler
2011-05-26 16:53 ` Johnny Billquist
2011-05-26 20:20 ` Fritz Wuehler
2011-05-28 18:01 ` Bill Gunshannon
2011-05-26 0:58 ` Rich Alderson
2011-05-26 1:23 ` glen herrmannsfeldt
2011-05-26 13:01 ` Bob Koehler
2011-05-27 0:54 ` glen herrmannsfeldt
2011-05-26 20:15 ` Rich Alderson
2011-05-26 23:56 ` glen herrmannsfeldt
2011-05-27 18:37 ` Rich Alderson
2011-05-27 0:02 ` glen herrmannsfeldt
2011-05-27 3:17 ` Johnny Billquist
2011-05-27 18:51 ` Rich Alderson
2011-05-27 19:48 ` Johnny Billquist
2011-05-27 18:35 ` Rich Alderson
2011-05-26 1:14 ` Jerome H. Fine
2011-05-26 1:32 ` glen herrmannsfeldt
2011-05-26 20:39 ` Jerome H. Fine
2011-05-26 15:50 ` Fritz Wuehler
2011-05-25 1:01 ` Rich Alderson
2011-05-26 12:53 ` Bob Koehler
2011-05-26 16:59 ` Johnny Billquist
2011-05-26 8:03 ` Fritz Wuehler
2011-05-26 14:21 ` paramucho
2011-05-26 18:50 ` billy
2011-05-27 11:58 ` paramucho
2011-05-27 17:23 ` billy
2011-05-26 17:04 ` Johnny Billquist
2011-05-27 1:30 ` Fritz Wuehler
2011-05-27 2:17 ` Scott Dorsey
2011-05-27 3:26 ` Johnny Billquist
2011-05-30 21:09 ` John Wallace
2011-05-31 1:15 ` Johnny Billquist
2011-05-31 18:02 ` jjh
2011-05-31 20:54 ` Bob Koehler
2011-05-31 21:37 ` glen herrmannsfeldt
2011-05-25 2:59 ` Jerome H. Fine
2011-05-25 10:51 ` Johnny Billquist
2011-05-25 12:36 ` Jerome H. Fine
2011-05-25 17:25 ` Tom Lake
2011-05-25 18:01 ` Jerome H. Fine
2011-05-25 18:44 ` Johnny Billquist
2011-05-26 1:20 ` Rich Alderson
2011-05-26 16:53 ` Rob Brown
2011-05-26 20:27 ` Rich Alderson
2011-05-27 3:27 ` Johnny Billquist
2011-05-26 20:38 ` Jerome H. Fine
2011-05-27 4:44 ` Johnny Billquist
2011-05-24 12:02 ` paramucho
2011-05-23 14:48 ` Jerome H. Fine
2011-05-23 22:46 ` Johnny Billquist
2011-05-24 0:19 ` Bill Gunshannon
2011-05-24 0:43 ` Johnny Billquist
2011-05-25 18:41 ` Jerome H. Fine
2011-05-24 2:54 ` billy
2011-05-24 13:03 ` Bill Gunshannon
2011-05-24 14:39 ` Johnny Billquist
2011-05-24 15:10 ` billy
2011-05-24 15:48 ` Johnny Billquist
2011-05-24 16:54 ` Bill Gunshannon
2011-05-24 14:42 ` billy
2011-05-24 16:56 ` Bill Gunshannon
2011-05-25 18:05 ` Jerome H. Fine
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox