From: Paul Johnson Date: Tue, 10 Jul 2001 21:53:28 +0000 (+0200) Subject: [DOC PATCH] Pluggable runops X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=1ba7f8516c9ddf9fe5f546213fbde0eab8b73e41;p=p5sagit%2Fp5-mst-13.2.git [DOC PATCH] Pluggable runops Message-ID: <20010710215328.B26577@pjcj.net> p4raw-id: //depot/perl@11268 --- diff --git a/pod/perlguts.pod b/pod/perlguts.pod index e4d4a14..323d456 100644 --- a/pod/perlguts.pod +++ b/pod/perlguts.pod @@ -1667,6 +1667,23 @@ additional complications for conditionals). These optimizations are done in the subroutine peep(). Optimizations performed at this stage are subject to the same restrictions as in the pass 2. +=head2 Pluggable runops + +The compile tree is executed in a runops function. There are two runops +functions in F. C is used with DEBUGGING and +C is used otherwise. For fine control over the +execution of the compile tree it is possible to provide your own runops +function. + +It's probably best to copy one of the existing runops functions and +change it to suit your needs. Then, in the BOOT section of your XS +file, add the line: + + PL_runops = my_runops; + +This function should be as efficient as possible to keep your programs +running as fast as possible. + =head1 Examining internal data structures with the C functions To aid debugging, the source file F contains a number of