XS is a Perl foreign function interface through which a program can call a C or C++ subroutine. XS or xsub is an abbreviation of "eXtendable Subroutine".
XS also refers to a glue language for specifying calling interfaces supporting such interfaces (see below).