Assembly Interpreter/Embedding C
Remco Gerlich
scarblac-spamtrap at pino.selwerd.cx
Tue Oct 19 18:43:18 EDT 1999
Guido van Rossum <guido at cnri.reston.va.us> wrote:
> Jeff Shipman - UC <jeff at nmt.edu> writes:
>
> > I am building an interactive Intel Assembly interpreter using Python. I
> > am now needing to add the part where my binary code is taken, loaded
> > into memory and executed. I've heard the only way of doing this is to
> > use C.
>
> I question what you've been told. Python has perfectly fine built-in
> tools for reading binary data from a file, e.g. the struct module and
> the "rb" open mode. Where is the need for using an extension?
I think the problem isn't loading it into memory (his Assembly
Interpreter probably generates it itself), but rather actually
executing the binary code from memory.
--
Remco Gerlich, scarblac at pino.selwerd.cx
"This gubblick contains many nonsklarkish English flutzpahs, but the
overall pluggandisp can be glorked from context" (David Moser)
More information about the Python-list
mailing list