3 ms·
yes it's also a common technique in embedded multi-threaded code where while there may be room for a stack there's only room for one small stack that has to be
by Taniwha 11y ago
yes it's also a common technique in embedded multi-threaded code where while there may be room for a stack there's only room for one small stack that has to be shared between all threads.
I've also seen it used in Verilog code where if you sprinkle @(posedge clk) event waits through an always block the synthesis tool creates some buried state (flops) to automatically unroll the code fragments into the equivalent of a case statement (don't do this it tends to make crappy gates)