Earlier quoted context omitted.
then you will love this https://www.reddit.com/r/csharp/comments/1c23y53/youtuber_ma...
Didn't see the video but doesn't that effectively mean that .NET was ported to DOS?
.NET for NES Game Console on 6502 Microprocessors
11–20 of 25 posts
Re: .NET for NES Game Console on 6502 Microprocessors
#12Re: .NET for NES Game Console on 6502 Microprocessors
#13I wonder how's the performance vs. C (for both, C# and Rust).
Edit: It's my understanding that the 6502 is extremely stack-limited, so a well-versed assembler would use the stack very little and allocate mostly on the heap. In C, you can replicate this with global variables, and I believe (and I would be very happy if someone related to the 6502 rust port could chime in here) on Rust you can do the same with `static mut` on Rust 2021 and `Unsafecell` on Rust 2024.
Re: .NET for NES Game Console on 6502 Microprocessors
#14>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?
Re: .NET for NES Game Console on 6502 Microprocessors
#15Re: .NET for NES Game Console on 6502 Microprocessors
#16This looks very much like "Hello World" in C, taking advantage of the latest C# features in 2023. If you admit that it looks like C(99), what's "C#" about it then? This can probably be done with just about every C-syntax-derived language, which is why I think the title is a bit clickbaity; I was expecting some sort of highly-stripped-down CLR.
The same way C23 on NES, isn't C proper, rather the macro assembler K&R C used to be.
Re: .NET for NES Game Console on 6502 Microprocessors
#17Earlier quoted context omitted.
The same way C23 on NES, isn't C proper, rather the macro assembler K&R C used to be.
So K&R C wasn't proper C?
* ANSI C by 11 years (C89)
* ISO C by 12 years (C90)
https://en.wikipedia.org/wiki/C_(programming_language)#K&R_CRe: .NET for NES Game Console on 6502 Microprocessors
#18Earlier quoted context omitted.
The same way C23 on NES, isn't C proper, rather the macro assembler K&R C used to be.
So K&R C wasn't proper C?
And good luck making good use of 6502 registers for C code.
Re: .NET for NES Game Console on 6502 Microprocessors
#19Earlier quoted context omitted.
Didn't see the video but doesn't that effectively mean that .NET was ported to DOS?
No. It relies on Windows 95 infrastructure. And it's not a modern .NET, but .NET Framework 2.0.
Re: .NET for NES Game Console on 6502 Microprocessors
#20Earlier quoted context omitted.
then you will love this https://www.reddit.com/r/csharp/comments/1c23y53/youtuber_ma...
Didn't see the video but doesn't that effectively mean that .NET was ported to DOS?