Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re^3: perl c++ perlembed question

by Joost (Canon)
on Jun 27, 2009 at 18:38 UTC ( [id://775357]=note: print w/replies, xml ) Need Help??


in reply to Re^2: perl c++ perlembed question
in thread perl c++ perlembed question

It doesn't matter which code embeds what. The only real difference between embedding perl in C and C in perl is that if you embed C code in perl you can use the standard perl interpreter to start everything, and otherwise you'll have to "manually" start the perl interpreter using a (short) bootstrap sequence in C.

Once you've done that, you can call into C and C++ functions from perl and vice versa regardless of how the startup procedure was executed.

Replies are listed 'Best First'.
Re^4: perl c++ perlembed question
by eth0nic (Initiate) on Jun 27, 2009 at 20:43 UTC
    and once more ... i dont want to just call some random XS wrapped funcs ... i want to call funcs that i declared in c++ BEFORE starting the perlembed stuff already ... they are in the memory ... i want to access them from the embdedded perl script ...
Re^4: perl c++ perlembed question
by eth0nic (Initiate) on Jun 27, 2009 at 20:39 UTC
    this still does not answer my question about the "HOW" ... :-(

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others contemplating the Monastery: (7)
As of 2024-04-19 10:32 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found