在汇编中编写python扩展 [英] writing python extensions in assembly

查看:73
本文介绍了在汇编中编写python扩展的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

任何人都可以给我指针/说明/模板用于编写Python

扩展程序集(或更好,HLA)吗?

Can anyone give me pointers/instructions/a template for writing a Python
extension in assembly (or better, HLA)?

推荐答案

吸入schrieb:
inhahe schrieb:

任何人都可以给我指针/说明/模板来编写Python

扩展程序集(或更好,HLA)?
Can anyone give me pointers/instructions/a template for writing a Python
extension in assembly (or better, HLA)?



您可以编写C扩展并嵌入程序集。请参阅文档,了解

如何写一个。如果你知道如何在程序集中实现一个基于C-callingconvention的

共享库(作为一个汇编程序大师,你肯定知道

是如何工作的),你可以模仿一个C -extension。


Diez

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


问题是我实际上不是装配大师,所以我不喜欢不知道

如何在asm中实现dll或使用ac调用约定,虽然我是

确保这些说明在网上可用。我只是害怕

试图学习并同时制作特定于python的扩展。

我想用嵌入式asm进行交流扩展,但这看起来似乎

不太理想。但如果有人认为'这是正确的方法,那就是'b $ b'足够好......


" Diez B. Roggisch" < de *** @ nospam.web.dewrote in message

news:69 ************* @ mid.uni-berlin.de ...
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" <de***@nospam.web.dewrote in message
news:69*************@mid.uni-berlin.de...

吸入schrieb:
inhahe schrieb:

>任何人都可以给我指针/指令/用于编写Python的模板
组装扩展(或更好,HLA)?
>Can anyone give me pointers/instructions/a template for writing a Python
extension in assembly (or better, HLA)?



您可以编写C扩展并嵌入程序集。请参阅文档,了解如何写一个
。如果你知道如何在程序集中实现一个基于C-callingconvention的共享

库(作为汇编程序大师,你肯定知道它是如何工作的),你可以模仿C -extension。


Diez


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



吸入schrieb:
inhahe schrieb:

问题是我实际上不是汇编器大师,所以我不知道如何在asm中实现dll或使用ac调用约定虽然我是

确保这些说明可以在网上找到。我只是害怕

试图学习并同时制作特定于python的扩展。

我想用嵌入式asm进行交流扩展,但这看起来似乎

不太理想。但是如果有人认为'这是正确的方法,

'足够好..
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

I think the right thing to do if you are not as fluent in assembly is do
not do anything in it at all. What do you need it for?

Diez


这篇关于在汇编中编写python扩展的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆