Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

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.

Lyle


Comment on Re: A problem converting C code to XS
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.

    Update:

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

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:

    http://world.std.com/~swmcd/steven/perl/pm/xs/intro/

    Quote:

    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!

      Lyle

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://408008]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others scrutinizing the Monastery: (9)
As of 2014-12-26 00:11 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (163 votes), past polls