How to get Python to use Assembly

前端 未结 3 838
死守一世寂寞
死守一世寂寞 2021-02-05 13:43

I am a beginner in assembly, but a master in Python. I have just recently started to learn x86_64 NASM for windows, and I wish to combine the power of assembly, and the flexibil

3条回答
  •  醉酒成梦
    2021-02-05 14:40

    You can also embed assembly directly inside your Python program:

    • https://github.com/Maratyszcza/PeachPy
    • https://github.com//pycca/pycca
    • http://codeflow.org/entries/2009/jul/31/pyasm-python-x86-assembler/
    • https://github.com/AmihaiN/pyAsm

    These work by compiling the assembly and loading it into executable memory at runtime. The first three projects implement x86 assemblers in Python, whereas the last calls out to an external compiler.

提交回复
热议问题