#323 --fomit-frame-pointer

closed
5
2011-05-26
2011-05-14
No

The Z80 port has an --fomit-frame-pointer option. The mcs51 could benefit from this as well or even use it as default as it has no indexing registers for idata. This would save a byte on the precious stack for every function call.

Discussion

  • Maarten Brock

    Maarten Brock - 2011-05-21

    This is implemented in SDCC 3.0.3 #6542 for internal stack based reentrancy. It is not yet implemented for --xstack.

     
  • Maarten Brock

    Maarten Brock - 2011-05-26
    • status: open --> closed
     
  • Maarten Brock

    Maarten Brock - 2011-05-26

    Now it is also implemented for --xstack in SDCC 3.0.3 #6557.

    It creates smaller and faster code than without --fomit-frame-pointer but I'm not ready yet to toss the old behaviour out or set this as default. Nonetheless I recommend users to try it out.

     

Log in to post a comment.