Execute binary code

richmoore44 at gmail.com richmoore44 at gmail.com
Tue Jan 9 08:02:08 EST 2007


Jorgen Grahn wrote:

> On 8 Jan 2007 12:29:36 -0800, olsongt at verizon.net <olsongt at verizon.net> wrote:
> For what it's worth[1], under Unix it /is/ impossible. The only way to bring in
> new code (short of dynamic libraries) is to call exec(2) or its variations,
> and all need a file system object to load the code from.

That's totally untrue, how do you think a JIT compiler works? For
example you can generate x86 assembler on the fly and call it using
pyASM see http://mysite.verizon.net/olsongt/usersGuide.html

Cheers

Rich.




More information about the Python-list mailing list