#302 Pagesel optimization

open
nobody
5
2010-10-14
2010-10-13
Alexey
No

Can PAGESEL be optimized or --pno-pagesel option be added to compiler?
For example pic16f676 does not need it at all.

Discussion

  • Maarten Brock

    Maarten Brock - 2010-10-13
    • assigned_to: nobody --> maartenbrock
    • status: open --> closed
     
  • Maarten Brock

    Maarten Brock - 2010-10-13

    Duplicate of RFE #3086714

     
  • Alexey

    Alexey - 2010-10-13

    It's not a Duplicate of RFE #3086714
    PAGESEL applies to function calls, for example:
    // test.c
    void main(void) {
    EE_Read(); // some abstract function
    }
    will generate
    // test.asm
    PAGESEL _EE_Read
    CALL _EE_Read
    PAGESEL $

    banksel applies to registers
    // test.c
    void main(void) {
    PORTA=0;
    }
    will generate
    // test.asm
    BANKSEL _PORTA
    CLRF _PORTA

    or --pno-banksel in pic16 target switches both BANKSEL and PAGESEL?

     
  • Maarten Brock

    Maarten Brock - 2010-10-14
    • assigned_to: maartenbrock --> nobody
    • status: closed --> open
     
  • Frieder Ferlemann

    as a temporary workaround you could use an extra peephole file with the lines:

    replace {
    PAGESEL %1
    } by {
    ; Peephole x.x removed PAGESEL
    }

    and specify the name of that file with --peep-file on the command line:
    sdcc -c -mpic14 -p16f84 --peep-file mypeeph.def pageseltest.c

     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.





No, thanks