Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #3396
| From | Miki Tebeka <miki.tebeka@gmail.com> |
|---|---|
| Newsgroups | comp.lang.python |
| Subject | Re: An unusual question... |
| Date | 2011-04-17 07:11 -0700 |
| Organization | http://groups.google.com |
| Message-ID | <cef6289e-764d-4aa7-97e6-4fa79467df8e@glegroupsg2000goo.googlegroups.com> (permalink) |
>
> If I wrote an Assembly(/Assembler) routine to call
> this binary code using say the JMP instruction or
> using PUSH absolute value and RET, and, call these
> "Jump" using:-
>
> os.system("/full//path/to/Jump <address_of_binary_in_ascii>")
This is calling a different *program* outside of the current Python process. I don't think it'll do what you want (different memory segments).
I'd start with either using ctypes/libffi or writing my own C extension wrapper around your good.
HTH
--
Miki Tebeka <miki.tebeka@gmail.com>
http://pythonwise.blogspot.com
Back to comp.lang.python | Previous | Next | Find similar
Re: An unusual question... Miki Tebeka <miki.tebeka@gmail.com> - 2011-04-17 07:11 -0700
csiph-web