N
N
neuroepoc2018-02-28 00:33:39
Python
neuroepoc, 2018-02-28 00:33:39

Is it possible to do assembler inserts in python3?

is it possible to? if possible then how? is there any benefit from this?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
D
Dimonchik, 2018-02-28
@dimonchik2013

see
https://docs.python.org/3/extending/
https://docs.python.org/3/library/ctypes.html
there is a benefit, but Python loses its development speed advantage
sometimes easier, in the age of microservices, run fast microservices

E
EmmGold, 2018-02-28
@EmmGold

And the meaning. Python assembles a program from ready-made modules like bricks. If some module is missing, it is written in C and then used in the python program. Modules can also be written in assembler.

A
Alex F, 2018-02-28
@delvin-fil

https://github.com/Maratyszcza/PeachPy
https://github.com/pycca/pycca
codeflow.org/entries/2009/jul/31/pyasm-python-x86-...
https://github.com /AmihaiN/pyAsm
The first three projects implement x86-64 or x86 assemblers in Python, the last one invokes an external compiler.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question