Skip to content
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

What's the issue with newer SDCC? IS there an upstream bug report? #1

Open
spth opened this issue May 21, 2024 · 7 comments
Open

What's the issue with newer SDCC? IS there an upstream bug report? #1

spth opened this issue May 21, 2024 · 7 comments

Comments

@spth
Copy link

spth commented May 21, 2024

The README mentions "Use SDCC 4.1.0 to build. Later versions create broken code". What is the problem here? Is there a corresponding ticket in the SDCC bug tracker?

@cpldcpu
Copy link
Owner

cpldcpu commented May 21, 2024

It's the same issue that I brought up in the free-pdk examples. I haven't been able to pinpoint the error back then.

@spth
Copy link
Author

spth commented May 24, 2024

The one that turned out to be a mov vs. mov.io issue: free-pdk/free-pdk-examples#13 ?

@cpldcpu
Copy link
Owner

cpldcpu commented May 24, 2024

Yeah, the compatibility-breaking change seems to have been one regarding IO instructions.

My old UART routines compiled without error, but resulted in nonfunctional code. Very annoying and difficult to debug. I solved it by reverting to an older version of SDCC. I may need to find some time to figure out how to make it compatible to the newer SDCC versions.

@spth
Copy link
Author

spth commented May 24, 2024

Then the solution should be easy: in all the I/O that you do via inline asm, change the instructions used to mov.io, set0.io, etc.
My recommendation: except for the few places where inline asm really provides an advantage, just use C.

@cpldcpu
Copy link
Owner

cpldcpu commented May 24, 2024

Just unrelated topic on this side: Any plans to migrate SDCC to git or even github? Would simplify submission of error reports significantly. Nowadays, I (and many others) have very little cross section to SVN and sourceforge and having to work with an unfamiliar system adds significant friction.

@spth
Copy link
Author

spth commented May 24, 2024

AFAIK, there are no plans for a migration. But it looks like we'll get an official git mirror of the svn repo.

@spth
Copy link
Author

spth commented May 24, 2024

Please check if the free-pdk examples work for you now. If yes, you can port the fixes there to here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants