4 ms·
> Machine code doesn't have "coroutine support" either yet all languages with coroutine support run just fine on regular CPUs. Yes and no. Some ISAs do have r
by DaiPlusPlus 5y ago
> Machine code doesn't have "coroutine support" either yet all languages with coroutine support run just fine on regular CPUs.
Yes and no.
Some ISAs do have real "co-instructions" that would be executed concurrently to the "main" program, for example Lisp Machines use this approach for executing bounds-checking concurrently, as well as other kinds of validation/assertions (and even had a limited form of hardware time-travel to jump-back to before a co-processor exception occurred).
This approach died out due to the complexity of implementation.