in reply to Embedding Perl in C - C structs

If all you need are C structures, and ways to inspect and change them via Perl, the Convert::Binary::C module can do that - but I believe I told you that already on the Frankfurt.pm mailing list :-)

Replies are listed 'Best First'.
Re^2: Embedding Perl in C - C structs
by ReinhardE (Sexton) on Feb 05, 2005 at 09:14 UTC
    Thx for the advice, yes I got it already from Frankfurt. I need to understand the module a little bit better. I think this resolves the 2nd problem, dealing with the C structures migrated into Perl space in some magic way, via the Perl stack using XS.
    Once this works my second question: what about performance ?
    Is it faster to fiddle around the C struct in C and use the Perl stack or give just a pointer to Perl and fiddle around the C-struct in Perl ? This needs more investigaton into the Convert::Binary::C. Any advice onto this would be highly appreciated.