writing python extensions in assembly
inhahe
inhahe at gmail.com
Fri May 16 10:43:58 EDT 2008
Well the problem is that I'm actually not an assembler guru, so I don't know
how to implement a dll in asm or use a c calling convention, although I'm
sure those instructions are available on the web. I was just afraid of
trying to learn that AND making python-specific extensions at the same time.
I thought of making a c extension with embedded asm, but that just seemed
less than ideal. But if somebody thinks that's the Right Way to do it,
that's good enough..
"Diez B. Roggisch" <deets at nospam.web.de> wrote in message
news:695jdlF30fp0gU1 at mid.uni-berlin.de...
> inhahe schrieb:
>> Can anyone give me pointers/instructions/a template for writing a Python
>> extension in assembly (or better, HLA)?
>
> You could write a C-extension and embed assembly. See the docs for how to
> write one. If you know how to implement a C-callingconvention-based shared
> library in assembly (being an assembler guru you sure know how that
> works), you could mimic a C-extension.
>
> Diez
More information about the Python-list
mailing list