[fpc-pascal] Portable coroutines

Mark Morgan Lloyd markMLl.fpc-pascal at telemetry.co.uk
Sun Mar 22 13:35:09 CET 2015

rpzrpzrpz at gmail.com wrote:
> Maybe look at the coroutine implementation in Go (Golang).
> Maybe a better refrence.  Maybe an optional switch in compiler so
> you are not required to have all CPU architectures working on day 1.
> Intel and ARM seem nice...

The issue isn't the syntax, it's that proper implementation of 
coroutines means switching stacks which is highly architecture-specific; 
adding something like that to the RTL is a non-starter.

Mark Morgan Lloyd
markMLl .AT. telemetry.co .DOT. uk

[Opinions above are the author's, not those of his employers or colleagues]

More information about the fpc-pascal mailing list