Follow

re: true co-routines in C 

@amiloradovsky@functional.cafe with -O2 it produces calls for me and crashes, with -O3 - jumps and doesn't crash. If you don't like optimizations, you can probably find the specific flags that do this, and dependent on your platform it can be pretty reliable. In generic high level code you shouldn't rely on this, yes, but there you shouldn't be thinking about the stack and specific assembly instructions either. Point is "there is no stack", and the compiler knows this.

Sign in to participate in the conversation
Qoto Mastodon

QOTO: Question Others to Teach Ourselves
An inclusive, Academic Freedom, instance
All cultures welcome.
Hate speech and harassment strictly forbidden.