I have a complex encoding function in Pure Perl which I am converting to XS in the hope of gaining a performance boost.
The function I am converting to XS needs to recursively call itself. I can see how to use call_sv [thanks to "man perlcall"] to call Pure Perl functions.
But how the heck do I call myself (or any other XS function) from within XS?
(P.S. Efficiency is very desirable...)
Can somebody throw me a hint? Or an example? P-p-p-please!
UPDATE: First answer was absolutely correct. Calling out to recursive pure C functions works just fine.