Writing an assembler in Python

Robert Kern robert.kern at gmail.com
Tue Feb 23 11:27:49 EST 2010


On 2010-02-22 21:47 PM, Ed Keith wrote:
>> Subject: Re: Writing an assembler in Python
>> Giorgos
>> Tzampanakis wrote:
>>
>>> I'm implementing a CPU that will run on an FPGA. I
>> want to have a
>>> (dead) simple assembler that will generate the machine
>> code for
>>> me.
>>
>> Let me suggest an alternative approach: use Python itself
>> as the assembler.
>> Call routines in your library to output the code. That way
>> you have a
>> language more powerful than any assembler.
>>
>> See<http://github.com/ldo/crosscode8>  for
>> an example.
>> --
>> http://mail.python.org/mailman/listinfo/python-list
>>
>
> Not a bad idea, has anyone tried this for x86 machine code?

http://www.corepy.org/

-- 
Robert Kern

"I have come to believe that the whole world is an enigma, a harmless enigma
  that is made terrible by our own mad attempt to interpret it as though it had
  an underlying truth."
   -- Umberto Eco




More information about the Python-list mailing list