XS Mechanics
XS Mechanics is an article in five parts about XS. It explains what it is, why it is, how it works, and how to use it. It includes a complete, working example of an XS module, and a stub module that you can use as a starting point for your own code. It is an express goal of this article to provide the background and information necessary for you to write your own XS modules.
- Introduction – motivation, definitions, examples
- Architecture – the Perl interpreter, calling conventions, data representation
- Tools – h2xs, xsubpp, DynaLoader
- Modules – Math::Ackermann, Set::Bit
- Align::NW – Needleman-Wunsch global optimal sequence alignment