Hi All, I have the idea that I want some programs which run on 6502 (and similar) and Z80 CPUs as well. So I need to have some kind of bytecode, which can be imagined as the machine code of an imagined CPU. That code must be simple to be translated easily for the target CPU with the maximal possible performance (even for the "runtime compiling" and the peformance of the native code I will have then). The file format should have: no self-modification, data/code cannot be mixed, so easy automatic compilation can be done. It would be great to have nice performance with both of Z80 and 6502. There is some kind of "OS" behind it, so it's not a problem that direct hardware accessing is not possible (as they can be quite different on machines even using the same CPU): the code itself just calls "OS functions" identified by a number, for example. 6502 has the advantage of "zero page", so I would like to see similar feature of the bytecode as well, I can simply name those as "registers" just I have more than an average 8 bit CPU :) On 6502 this maps to the zero page locations, on Z80, well, not: they will be regular memory addresses. It was just an example: if we have some advantage/feature of one of the target CPUs, it would be nice to use, especially if it's not a disadvantage on the other CPU (even if it does not mean advantage there). My question: is there any existing project having these goals? I don't want reinvent the wheel ... thanks, - Gábor Message was sent through the cbm-hackers mailing listReceived on 2011-10-26 16:00:42
Archive generated by hypermail 2.2.0.