Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I had always heard that C was ill-suited for 6502 targets because of the way the language uses registers and the stack.


The language doesn't really have any opinion on that though?

But I could imagine assumptions about it being a problem if you try to add a 6502 backend to an existing compiler for other platforms.


Sometimes a source language can be an awkward fit for a target architecture. For one thing the 6502 is 8-bit and the C standard guarantees that the int type must be at least 16-bits. More generally, quirks of a hardware architecture can make it difficult for compilers to generate efficient code.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: