Writing an assembler in Python

Ed Keith e_d_k at yahoo.com
Mon Feb 22 22:47:26 EST 2010


> 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?

   -EdK 

Ed Keith
e_d_k at yahoo.com

Blog: edkeith.blogspot.com






      



More information about the Python-list mailing list