Andrew Haley wrote: > Ganesh wrote: >> I haven't said that I don't understand the steps involved. I have just >> now started to work on it. I want to check whether if anyone have ever >> tried this port and successfully completed it. > > It's very unlikely. It's not completely impossible to do it, but > code quality would probably be poor. > > See http://gcc.gnu.org/ml/gcc/2003-07/msg00890.html > http://gcc.gnu.org/ml/gcc/2003-07/msg01167.html I've been thinking about this some more. I suspect you could get good results by generating not 8051 assembly language, which would be gross, but a simple bytecode engine. It wouldn't be at all fast, but it would be possible to generate some native code sequences and intermix them with the bytecode. This would be a reasonable compromise between speed and code density. Andrew.