[lnkForumImage]
TotalShareware - Download Free Software

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


 

Forums >

comp.lang.python

Re: Writing an assembler in Python

Ed Keith

2/23/2010 3:47:00 AM

> 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/cros... for
> an example.
> --
> http://mail.python.org/mailman/listinfo/p...
>

Not a bad idea, has anyone tried this for x86 machine code?

-EdK

Ed Keith
e_d_k@yahoo.com

Blog: edkeith.blogspot.com