[Tutor] assembly language and boot loader
Oscar Benjamin
oscar.j.benjamin at gmail.com
Fri Sep 28 13:59:47 CEST 2012
On 23 September 2012 05:46, Fit Wii <wii_fit at ymail.com> wrote:
> Is there any IDE or Python interpreter that can show the assembly language
> generated by each line of python code? Is there any popular boot loader
> written in Python (plus some assembly code)?
>
Python doesn't generate assembly language code. It does, however, compile
python code to bytecode which is like assembly for the Python interpreter
rather than for the CPU. Have a look at the dis module:
http://docs.python.org/library/dis.html
Oscar
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/tutor/attachments/20120928/7c9efd03/attachment-0001.html>
More information about the Tutor
mailing list