Menu ▾ ▴

#545 Inefficient code generated in handling of global struct

None
closed-fixed
None
5
2018-10-18
2017-11-08
No

The attached example comes from a discussion at the ST STM8 forums. SDCC generates much bigger code than Cosmic here (mostly due to too many temporaries being introduced; a minor improvement could come from a different calling convention).

Philipp

1 Attachments

Discussion

  • Philipp Klaus Krause

    • Description has changed:

    Diff:

    --- old
    +++ new
    @@ -1,3 +1,3 @@
    -The attached example comes from a discussion at the ST STM8 forums. SDCC gnerates much bigger code than Cosmic here (mostly due to too many temporaries being introduced; a minor improvement could come from a different callig convention).
    +The attached example comes from a discussion at the ST STM8 forums. SDCC generates much bigger code than Cosmic here (mostly due to too many temporaries being introduced; a minor improvement could come from a different calling convention).
    
     Philipp
    
    • status: open --> closed-fixed
    • assigned_to: Philipp Klaus Krause
    • Group: -->
     
  • Philipp Klaus Krause

    The generated asm improved a lot with the rematerialization support in the stm8 backend; with the pointer read improvement in [r10623], it looks okay now.

    Philipp

     

Log in to post a comment.