Hi! Hope this is the right place. I'm not sure it's quite NES-specific enough to belong in general. If it is, apologies for requiring the move!
Why is it that (I'm speaking with no experience here, just from what I've remembered reading here and there) C is not a good fit for 6502 programming? People often praise C for how "close to the metal" it is, but I suppose that's just one kind of metal? (https://queue.acm.org/detail.cfm?id=3212479)
Is it related to how C (and most other procedural languages, higher or lower level) deal with the stack? is the 6502 stack insufficient? I remember reading something regarding a "virtual stack" on the 6502, but admittedly the majority went over my head.
Or is it related to the fact that, relatively speaking, there really isn't a "market" for an optimized C-to-6502 compiler?
I'm not a systems programmer, nor an assembly programmer, and I'm only a passable C programmer! So please forgive my ignorance, but I am for some reason particularly curious in regards to this topic. Hopefully you knowledgeable folks on here are prepared to humor me and give me your thoughts.
Those are the two things that popped into my mind, but I'm very curious to know the thoughts of you on here.
Thank you!
Why is it that (I'm speaking with no experience here, just from what I've remembered reading here and there) C is not a good fit for 6502 programming? People often praise C for how "close to the metal" it is, but I suppose that's just one kind of metal? (https://queue.acm.org/detail.cfm?id=3212479)
Is it related to how C (and most other procedural languages, higher or lower level) deal with the stack? is the 6502 stack insufficient? I remember reading something regarding a "virtual stack" on the 6502, but admittedly the majority went over my head.
Or is it related to the fact that, relatively speaking, there really isn't a "market" for an optimized C-to-6502 compiler?
I'm not a systems programmer, nor an assembly programmer, and I'm only a passable C programmer! So please forgive my ignorance, but I am for some reason particularly curious in regards to this topic. Hopefully you knowledgeable folks on here are prepared to humor me and give me your thoughts.
Those are the two things that popped into my mind, but I'm very curious to know the thoughts of you on here.
Thank you!