in reply to Extending Perl with C: how to use an array reference?
What is your C functions doing? Would it be very hard to move that functions code into the XS above and operate directly upon the IVs?