Menu

#3 Soft framepointer vs. CFS without framepointer

1.0
closed
akre
None
2017-10-14
2017-10-02
No

According to the discussion at
https://sourceforge.net/p/sdcc/mailman/sdcc-devel/thread/37d1091a-a0d4-5b72-3609-8c0ef0197f6a%40spth.de/
it should be possible to do without the frame pointer in RAM (and thus the code with --debug would be more similar to the one without, which reduces the risk of bugs that cannot be reproduced under debugging).

Should this be implemented?

Philipp

Discussion

  • akre

    akre - 2017-10-02

    Actually since the last discussion we had I made an effort to fix the cfa debug info. However since the debug debug code generation for stm8/hc08 is somehow broken in the trunk and no response in the mailing list I gave up...

    https://sourceforge.net/p/sdcc/mailman/message/35836515/

     
  • Philipp Klaus Krause

    Unfortunately, I don't know much about the debug info stuff. I mostly just merged patches that looked ok-ish and did some small obvious fixes.

    Maybe someone on sdcc-user can help (there might be some users of the debug output on HC08 - maybe some extra linker options are required or such)?

    Philipp

     
  • Philipp Klaus Krause

    Erik fixed that issue a week ago. Are there further SDCC problems, that need to be sorted out before debugging can be done without a frame pointer?

    Philipp

     
    • akre

      akre - 2017-10-08

      I have patched in the missing pieces to produce debug-line info for stm8
      gen.c

      But we still need debug-frame info as well to be able to unwind the stack
      W/o a fp.

       

      Last edit: akre 2017-10-09
  • akre

    akre - 2017-10-14
    • status: open --> closed
    • assigned_to: akre
     
  • akre

    akre - 2017-10-14

    Done. SDCC changes submitted upstream.

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.