[ragel-users] Re: ragel edge side include parser

Adrian Thurston thurs... at cs.queensu.ca
Wed Jan 9 23:48:31 UTC 2008


Todd Fisher wrote:
> Okay, I did some more reading and now understand why with -G2 cs
> variable is always the same value.  From chapter 5, page 43:
> "Generally this produces faster running code because it allows the
> machine to encode the current 
> 
> state using the processor's instruction pointer."

That's right, for optimization purposes cs is not valid inside the
execution loop. From page 7 of the manual (version 5.25):

>From outside the execution loop, control may be passed to any machine by
assigning the entry point to the cs variable.  From inside the execution
loop, control may be passed to any machine instantiation using fcall
fgoto or fnext statements.

Adrian



More information about the ragel-users mailing list