-
Notifications
You must be signed in to change notification settings - Fork 441
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Targeting the CP1610 CPU for Intellivision possible? #39
Comments
So everything is really 16-bits? ... run |
Yep everything is addressed and stored as 16 bits. |
Or can I just change "token.h" at line: |
You can run |
Sadly i don't think LCC is really suitable for this, LCC is quite "happy" to put things temporarily into memory in the symbolic dumps at least and this would probably hurt performance quite badly on slower CPU's (maybe i missed checking optimized builds?). Might be worth checking out SDCC (small device C compiler that has many backends) or the old PCC compiler to see if they are easy to adapt. As long as you don't need C++ there is quite a few options and while LCC is attractively designed this tendency for temporaries would not fly with those old CPU's. (If you want good performance with games that i suspect is the target?) |
Hey we're having a discussion over at Atariage about the possibility of getting a C compiler to target the "CP1610" CPU. Ref: http://atariage.com/forums/topic/286670-sdcc-pic16-c-compiler/?p=4192163
Its a 16 bit CPU where sizeof(char) = sizeof(int) = sizeof(void*) = 1.
Is re-targeting for this CPU possible and if so are there any good docs or reference for what parts need to be changed in LCC to make this happen?
The text was updated successfully, but these errors were encountered: