[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: Coroutines and Go
- From: David Kastrup <dak@...>
- Date: Thu, 12 Nov 2009 20:16:00 +0100
Paul Hudson <email@example.com> writes:
> (Sorry about the repeated messages)
> They were definitely not new in 1979 (Motorola's 6809 supported them) but
> keeping stuff in the stack was not uncommon even with the 6502, even
> without direct hardware support.
> Way before that - the PDP-11 has hardware support for a stack, and I'll bet it
> wasn't the first.
But we are not talking about the availability of index register based
addressing. We are talking about it being equally efficient.
Old architectures not even had a return stack.
Later optimized with an explicit return jump instruction which did the
same non-reentrable hackery.