[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.python

translating Python to Assembler

over

1/22/2008 10:30:00 PM

My expertise, if any, is in assembler. I'm trying to understand Python
scripts and modules by examining them after they have been
disassembled in a Windows environment.

I'm wondering if a Python symbols file is available. In the Windows
environment, a symbol file normally has a PDB extension. It's a little
unfortunate that Python also uses PDB for its debugger. Google, for
whatever reason, wont accept queries with dots, hyphens, etc., in the
query line. For example a Google for "python.pdb" returns +python
+pdb, so I get a ridiculous number of returns referring to the python
debugger. I have mentioned this to Google several times, but I guess
logic isn't one of their strong points. :-)
1 Answer

Bjoern Schliessmann

1/23/2008 1:03:00 PM

0

over@thepond.com wrote:

> My expertise, if any, is in assembler. I'm trying to understand
> Python scripts and modules by examining them after they have been
> disassembled in a Windows environment.

IMHO, that approach doesn't make sense to understand scripts or
modules (except if you have some kind of super brain -- because
Python is _very_ high level). It only does if you want to
understand the Python compiler/interpreter you use.

For compilers that output machine code directly this *may* make
sense (but for more complex programs it will become very
difficult).

If you'd like to get a "low level" look into how things are done in
Python, try the dis module. Using dis.dis, you can look at
disassembled Python byte code.

Regards,


Björn

--
BOFH excuse #251:

Processes running slowly due to weak power supply