Attempt to make Serial_HelloWorld compatible with SDCC 4.4.0#15
Conversation
|
I didn't try it, but from a quick look at the diff it looks ok to me, and should do what the title claims. Two questions:
|
I believe older versions of SDCC were not able to infer the set instruction for different memory types. Is that now all fixed? |
|
Compiling that Serial_HelloWorld, which has both, it looks like there is no difference: vs. Philipp P.S.: AFAIK, SDCC does use set0 and set1 for I/O. But it can't do so for general RAM: set0 and1 are only available for a part of the RAM, and which variable will be where in RAM is typically not known before link time. |
|
Thanks for your feedback.
I am just evaluating PFS173 at the moment. No need to change that here. Sorry for that.
I was hoping that it will run faster. However, in a different test case I experienced that |
|
Shall we merge this? Or what are the proposed changes? Changing to PFS154 as default? |
|
I'd rather just make the minimal changes necessary as a first step: Replace the mov by mov.io, etc in the inline asm. P.S.: I've now implemented what I proposed above. |
This Pull Request refers to
https://github.com/free-pdk/free-pdk-examples/issues/13