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

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

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

Replies are listed 'Best First'.
Re: Re: Re: Re: embedded perl calls c subroutines
by theorbtwo (Prior) on Aug 12, 2002 at 21:15 UTC

    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.