Getting started with XS
Part 1: Getting started with XS
Part 2: Writing your own XS functions
Part 3: XS utility routines that are good to know
eXtendable Subroutines (XS) are subroutines written in C that are callable from Perl code. There are two common reasons you’d want to use XS: there is a C library you’d like to use with Perl, or you want to make a subroutine faster by processing it in C instead of Perl.
This tutorial will walk you through all the components needed to get up and running with a basic XS example.