Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery

Re: A problem converting C code to XS

by cosmicperl (Chaplain)
on Nov 16, 2004 at 00:19 UTC ( #408008=note: print w/replies, xml ) Need Help??

in reply to A problem converting C code to XS

I'm getting into XS code as well. If you've found any good sites on this please share.


Replies are listed 'Best First'.
Re^2: A problem converting C code to XS
by sth (Priest) on Nov 16, 2004 at 19:09 UTC

    I don't know of any sites, but get yourself a copy of Extending and Embedding Perl and join perlxs mailing lists. The mailing list is slow sometimes, but you will get some good help, as well as asking here.


    I should have mentioned reading the man pages, perlxs & perlxstut. Here is nice site see how perl guts look :-),

Re^2: XS Mechanics
by Brutha (Friar) on Nov 17, 2004 at 12:31 UTC
    Have a look at these articles by Steven McDougall. They did help me most of all:


    This article is 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.

    This article is in five parts

    November - Introduction motivation, definitions, examples
    December - Architecture the Perl interpreter, calling conventions, data representation
    January - Tools h2xs, xsubpp, DynaLoader
    February - Modules Math::Ackermann, Set::Bit
    March - Align::NW Needleman-Wunsch global optimal sequence alignment

    And it came to pass that in time the Great God Om spake unto Brutha, the Chosen One: "Psst!"
    (Terry Pratchett, Small Gods)

      Thanks to both of you. Those are some really good resources.

      Much appreciated!


Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://408008]
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others meditating upon the Monastery: (3)
As of 2018-05-21 17:26 GMT
Find Nodes?
    Voting Booth?