in reply to Re: embedded perl calls c subroutines
in thread embedded perl calls c subroutines

Inline::C is a very happy thing, BTW. (However, Inline::C just uses the same ol' XS itself; it's just an easier way of writing it.)


Confession: It does an Immortal Body good.

  • Comment on Re: Re: embedded perl calls c subroutines

Replies are listed 'Best First'.
Re: Re: Re: embedded perl calls c subroutines
by Courage (Parson) on Aug 12, 2002 at 14:05 UTC
    Inline::C is an excellent thing to start, and very interesting, and many other good words we'll say to it.

    But (IMHO) sometimes it's may be not good to use it in a final version of a script, because it recompiles something on the fly, and that means not only big startup time of a script, but also you must distribute your program with C compiler.

    addition: After some experiments, I found out that I was wrong and things are easier to end-user than I thought: once Inline::C compiled a code, it do not recompile it again, and just loads it on demand from a single dll file (on my Win32).
    Very interesting module to play with!

    Courage, the Cowardly Dog

      Also, there's also Inline::MakeMaker, which will (in theory, anyway -- I've never played with it) work with MakeMaker to create a normal Makefile.pl && make test install installable module. Like I said, I've never played with it; I'm not confident enough in my C, nor have I written anything that's acutaly very useful with Inline::C. (The closest I've come is a program for configuring winbond IO chips, which I can no longer test.)


      Confession: It does an Immortal Body good.