问题描述
任何人都可以给我指针/说明/模板用于编写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
您可以编写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
我认为如果你的流利不是很流畅,那就做对了。
根本不做任何事情。你需要什么?
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扩展的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!