Are contributors expected to prepare one massive patch to resolve hundreds of regression failures, or should we first review and integrate the smaller, tested patches that have already been submitted?
Some patches, including #97 (2008), #173/#178 (2012), #303 (2019), and #472 (2024), have remained open for years, despite substantial engineering effort. Parts of #472 were committed, but other important fixes remained unresolved.
Considerable time has also been spent preparing and validating recent PIC14/PIC16 patches.
Are these tested engineering contributions intended to become part of SDCC, or are they simply going to remain wishes and suggestions in the patch tracker?
I believe reviewing existing contributions is just as important as counting regression failures.
Unfortunately, this is where we stand today.
Thank you.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
My understanding of the PIC code is very limited.
Without a working infrastructure, it's impossible for me to verify any of the patches.
I'll take a look at the patches
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Thank you for taking the time to look at the patches.
I would like to clarify that the patches we have submitted to restore and improve the PIC ports have already gone through development, testing, and validation before submission. These are not speculative or random changes, but deliberate, incremental improvements based on source code analysis and observed compiler behavior.
I believe that reviewing and integrating these patches into the upstream source tree in a logical sequence would gradually restore a functional build and regression testing infrastructure for both PIC ports.
Unfortunately, due to the long period during which these ports have remained unmaintained, we are still spending considerable effort resolving existing compiler, library, build system, and regression testing issues. As a result, we have not yet been able to move on to adding support for newer PIC devices.
Our goal is not simply to maintain a working local version of SDCC. We are making this effort because we want these improvements to become part of the official SDCC project, where they can benefit all users and provide a solid foundation for future development.
We are willing to continue testing, refining, and submitting patches to help bring the PIC ports back to an actively maintained and reliable state.
Thank you for your cooperation.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I agree with the goal of bringing the pic port to parity with the other ports.
I took a look at some of the old patches. They fall in the following categories:
1- bug fixes
2- new features/new devices
3- performance/optimization
I think we should prioritize #1
To complicate the issue:
1- A few seems to be already in the source.
2- Many don't apply cleanly due to their age.
3- Some are too complex for me to understand (i am not a pic expert) without starting from a clean regression run.
I'd be happy to get some help reviewing the old bugs/patches to fix issue 1 and 2 above.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Not a reply to the question of the purpose of this ticket, just to the rest of what your wrote.
The pic ports are unmaintained. AFAIK among the maintainers of other SDCC ports, there is no PIC expert. That makes reviewing pic patches hard, and we currently already have quite a backlog of patches to review (in particular recently due to many new LLM-written patches) . I hope to be able to put some time into patch review in the next two weeks, but since I'm not a pic expert either, most of that time will go to non-pic patches. Still, pic port users also benefit from patches fixing frontend issues.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
long long mul/div/mod enabled in [r17246]
Related
Commit: [r17246]
Hi,
What exactly are we trying to achieve here?
Are contributors expected to prepare one massive patch to resolve hundreds of regression failures, or should we first review and integrate the smaller, tested patches that have already been submitted?
Some patches, including #97 (2008), #173/#178 (2012), #303 (2019), and #472 (2024), have remained open for years, despite substantial engineering effort. Parts of #472 were committed, but other important fixes remained unresolved.
Considerable time has also been spent preparing and validating recent PIC14/PIC16 patches.
Are these tested engineering contributions intended to become part of SDCC, or are they simply going to remain wishes and suggestions in the patch tracker?
I believe reviewing existing contributions is just as important as counting regression failures.
Unfortunately, this is where we stand today.
Thank you.
My understanding of the PIC code is very limited.
Without a working infrastructure, it's impossible for me to verify any of the patches.
I'll take a look at the patches
Hi Gabriele,
Thank you for taking the time to look at the patches.
I would like to clarify that the patches we have submitted to restore and improve the PIC ports have already gone through development, testing, and validation before submission. These are not speculative or random changes, but deliberate, incremental improvements based on source code analysis and observed compiler behavior.
I believe that reviewing and integrating these patches into the upstream source tree in a logical sequence would gradually restore a functional build and regression testing infrastructure for both PIC ports.
Unfortunately, due to the long period during which these ports have remained unmaintained, we are still spending considerable effort resolving existing compiler, library, build system, and regression testing issues. As a result, we have not yet been able to move on to adding support for newer PIC devices.
Our goal is not simply to maintain a working local version of SDCC. We are making this effort because we want these improvements to become part of the official SDCC project, where they can benefit all users and provide a solid foundation for future development.
We are willing to continue testing, refining, and submitting patches to help bring the PIC ports back to an actively maintained and reliable state.
Thank you for your cooperation.
I agree with the goal of bringing the pic port to parity with the other ports.
I took a look at some of the old patches. They fall in the following categories:
1- bug fixes
2- new features/new devices
3- performance/optimization
I think we should prioritize #1
To complicate the issue:
1- A few seems to be already in the source.
2- Many don't apply cleanly due to their age.
3- Some are too complex for me to understand (i am not a pic expert) without starting from a clean regression run.
I'd be happy to get some help reviewing the old bugs/patches to fix issue 1 and 2 above.
Not a reply to the question of the purpose of this ticket, just to the rest of what your wrote.
The pic ports are unmaintained. AFAIK among the maintainers of other SDCC ports, there is no PIC expert. That makes reviewing pic patches hard, and we currently already have quite a backlog of patches to review (in particular recently due to many new LLM-written patches) . I hope to be able to put some time into patch review in the next two weeks, but since I'm not a pic expert either, most of that time will go to non-pic patches. Still, pic port users also benefit from patches fixing frontend issues.
I would also like to bring attention to [bugs:#4112], as it is relevant to the ongoing PIC16 work tracked here.
The updated #4112 patch has now been validated against SDCC trunk r17247 on Windows/MSYS2 with MinGW-w64 and GPUTILS r1333.
Verified results:
CCAS_RAWis generated correctly.libdevbuild passes.The fix addresses the build infrastructure rather than the PIC16 backend's regression failures directly.
However, having a reliably buildable PIC16 environment is an important prerequisite for meaningful regression testing and further backend maintenance.
Could the maintainers please review #4112 for integration into trunk?
The updated r17247 patch and detailed validation results are attached to the existing #4112 ticket.
https://sourceforge.net/p/sdcc/bugs/4112/
Related
Bugs: #4112
Last edit: Maarten Brock 6 days ago
[r17249]
Related
Commit: [r17249]
Last edit: Gabriele Gorla 5 days ago
[r17287]
Related
Commit: [r17287]