Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re^2: Blending perl and C (two approaches)

by Hercynium (Hermit)
on Oct 28, 2007 at 18:00 UTC ( #647718=note: print w/replies, xml ) Need Help??


in reply to Re: Blending perl and C (two approaches)
in thread Blending perl and C (two approaches)

Better yet, perhaps you could store the byte-code, and pass *that* through an embedded interpreter? (Heck, while you're at it, encrypt the byte-code as well!)

This may help in preventing some clever hacker from attaching to the process via a debugger and capturing the program 's contents as it's being passed for the eval.
  • Comment on Re^2: Blending perl and C (two approaches)

Replies are listed 'Best First'.
Re^3: Blending perl and C (two approaches)
by diotalevi (Canon) on Oct 30, 2007 at 23:49 UTC

    Perl does not have bytecode. The non-existent bytecode can't be stored and then retrieved later. If it existed, this bytecode could be deparsed back to perl code.

    ⠤⠤ ⠙⠊⠕⠞⠁⠇⠑⠧⠊

      Well, what I was referring to was the info in here. Granted, I'm a neophyte in the department of perl internals, but I've head of the -B option being used for that sort of purpose.

        perlcc was an extension and has been removed for perl 5.10. The core of perl has never used bytecode.

        ⠤⠤ ⠙⠊⠕⠞⠁⠇⠑⠧⠊

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://647718]
help
Chatterbox?
[erix]: ha, good stuff - loud and fast...
[stonecolddevin]: here's some Mastodon for when you have 13 minutes to have your mind blown: https://www. youtube.com/watch? v=4pvfQtUhtNE
[karlgoethebier]: goes to Brownsville one more time..
erix squirrels away the linkies

How do I use this? | Other CB clients
Other Users?
Others scrutinizing the Monastery: (7)
As of 2017-06-22 21:53 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    How many monitors do you use while coding?















    Results (531 votes). Check out past polls.