Hacker News new | ask | show | jobs
by DeathArrow 756 days ago
>For lack of a better word, .NES is a "transpiler" that takes MSIL and transforms it directly into a working 6502 microprocessor binary that can run in your favorite NES emulator.

>Building a project should produce a *.nes binary, that is byte-for-byte identical to a program written in C.

What about memory management? Is the garbage collector included in the generated code? If not, any idea on how memory management is done?

1 comments

No objects and GC so far. I guess local variables are stored on the stack and for everything on the heap (globals, strings) the transpiler maps MSIL loads and stores to 6502 loads and stores.