Re:JIT compiler for 6502 machine code, built on lib6502 and ...
by hrrld on Monday April 13, 2015 @10:35PM
(#9371796)
Super-interesting article, thank you for sharing.
Two great quotes from near the bottom...
"At this point in the project we have Super Mario Brothers 1 running mostly on native code, although not very highly optimized. We've learned that static compilation, while possible, is rendered pointless by some of the inherent challenges that emulating a system presents."
and...
"These issues must be resolved if we want a playable game. Sadly, the solution marks the final nail in the coffin of the integrity of this project."
Re:JIT compiler for 6502 machine code, built on lib6502 and ...
by fit2rule on Tuesday April 14, 2015 @06:08AM
(#9373163)
I only wish that this JIT compiler was for cc65 so that it produced faster 6502 code. Anyone know of any efforts to do that - my Oric Atmos sessions would definitely benefit!
Re:JIT compiler for 6502 machine code, built on lib6502 and ...
by 0x0 on Monday April 13, 2015 @05:53PM
(#9370758)
Dealing with self-modifying code must be one of the hardest tricks to pull off. Saw a notice in TODO about memory leaks, I guess that means there is actually some support for this? Even with leaks that sounds quite impressive.
Two great quotes from near the bottom...
"At this point in the project we have Super Mario Brothers 1 running mostly on native code, although not very highly optimized. We've learned that static compilation, while possible, is rendered pointless by some of the inherent challenges that emulating a system presents."
and...
"These issues must be resolved if we want a playable game. Sadly, the solution marks the final nail in the coffin of the integrity of this project."
So brave. 10/10 - would read again.
http://www.cc65.org/ Is a C based 6502 compiler that people looking at this JIT compile might be interested in.
http://www.mouser.com/search/refine.aspx?Ntk=P_MarCom&Ntt=%2...
http://tuxnes.sourceforge.net/