EvilZone
Programming and Scripting => Scripting Languages => Topic started by: DerpyTurtle on March 22, 2013, 12:25:32 AM
-
I was wondering if it were possible to make an .exe out of some python scripts I have by using assembly by including them and making a call to them before compiling, Im fairly new to assembly and am not 100% sure what it can do yet, thats why I am asking if this will work
-
Honestly, I don't really understand the question. Do you want to exec assembly in Python? Or exec Python in assembly? Since you mentioned .exe do you want to compile your python script that uses ASM into an .exe, or generate an .exe from ASM that calls some python scripts?
For ASM in python, this may be relevant, but I have never done it nor had a need to. But this might be of use?
http://stackoverflow.com/questions/6040932/executing-assembler-code-with-python
But to be honest, I don't see a need for this. If you need something in ASM why put python in it? It will hinder exec speed and all, and if you need ASM in a python script, what's wrong with using C instead?
-
I want to use Assembly to call my python scripts and make an exe out of that, and Im wondering if it would function or not.
Thank you for the references I will give them a look!
-
I'm not an assembler programmer, but here are some links:
http://stackoverflow.com/questions/11964935/run-another-program-from-assembly-language (http://stackoverflow.com/questions/11964935/run-another-program-from-assembly-language)
http://stackoverflow.com/questions/10056685/assembly-load-and-execute-issue (http://stackoverflow.com/questions/10056685/assembly-load-and-execute-issue)
If Python is in the system path maybe?
http://my.opera.com/assembly%20pro/blog/how-run-a-program-in-assembly (http://my.opera.com/assembly%20pro/blog/how-run-a-program-in-assembly)
Again not an ASM person, but may hold relevance?
Although I would req running assembly in your python script for ease. Python can/will support running assembly, be much easier to put ASM in python itself. My opinion though.