Menu ▾ ▴

#4270 PIC16 status

open
nobody
None
PIC16
5
2 days ago
2026-11-23
No

bug to track PIC16 progress

as of [r17245]

Summary for 'pic16' : 20 abnormal stops ( ), 719 failures, 26012 tests, 6480 test cases, 0 bytes, 0 ticks

Related

Commit: [r17245]

Discussion

  • Gabriele Gorla

    Gabriele Gorla - 2026-11-23

    long long mul/div/mod enabled in [r17246]

    Summary for 'pic16' : 21 abnormal stops ( ), 686 failures, 26083 tests, 6485 test cases, 0 bytes, 0 ticks
    
     

    Related

    Commit: [r17246]

  • zeynelsagcan

    zeynelsagcan - 7 days ago

    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.

     
    • Gabriele Gorla

      Gabriele Gorla - 5 days ago

      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

       
      • zeynelsagcan

        zeynelsagcan - 5 days ago

        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.

         
        • Gabriele Gorla

          Gabriele Gorla - 5 days ago

          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.

           
    • Philipp Klaus Krause

      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.

       
  • zeynelsagcan

    zeynelsagcan - 6 days ago

    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:

    • Original PIC16 assembler quoting failure reproduced.
    • Updated six-file patch applies cleanly to r17247.
    • CCAS_RAW is generated correctly.
    • PIC18F1220 object compilation passes without compiler flag overrides.
    • Complete PIC16 non-free libdev build passes.
    • Assembler execution from a path containing spaces 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
  • Gabriele Gorla

    Gabriele Gorla - 5 days ago

    [r17249]

    Summary for 'pic16' : 22 abnormal stops ( ), 536 failures, 26809 tests, 6494 test cases,        0 bytes,          0 ticks
    
     

    Related

    Commit: [r17249]


    Last edit: Gabriele Gorla 5 days ago
  • Gabriele Gorla

    Gabriele Gorla - 2 days ago

    [r17287]

    Summary for 'pic16' : 9 abnormal stops ( ), 458 failures, 29741 tests, 6520 test cases, 0 bytes, 0 ticks
    
     

    Related

    Commit: [r17287]


Log in to post a comment.