News for hackers. Stuff that matters.
Re:JIT compiler for 6502 machine code, built on lib6502 and ... by ksherlock on Monday April 13, 2015 @05:03PM (#9370483)
Related - Statically Recompiling NES Games into Native Executables with LLVM and Go (http://andrewkelley.me/post/jamulator.html)
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."

So brave. 10/10 - would read again.

Re:JIT compiler for 6502 machine code, built on lib6502 and ... by orionblastar on Monday April 13, 2015 @04:48PM (#9370390)
I don't think the 6502 will ever die. It is too popular and was used in a lot of 8 bit computers and video game consoles.

http://www.cc65.org/ Is a C based 6502 compiler that people looking at this JIT compile might be interested in.

Re:JIT compiler for 6502 machine code, built on lib6502 and ... by univacky on Monday April 13, 2015 @07:14PM (#9371126)
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.
Re:JIT compiler for 6502 machine code, built on lib6502 and ... by meow98765 on Monday April 13, 2015 @08:40PM (#9371413)
JIT compiling 6502 code is an idea that has been around for a long, long time.

http://tuxnes.sourceforge.net/