#489 Far too many SLOCs

closed
Johan Knol
5
2013-05-25
2003-03-26
Paul Stoffregen
No

Recently, SDCC is allocating far too many spill
locations. Attached is some sample code that is
compiled with 54 SLOCs using 120 bytes of internal ram.
By comparison, a cvs checkout on March 18 uses only 4
SLOCs consuming 8 bytes of internal RAM.

I tried to pare this down to a managable example, but
it's still a couple hundred lines of code. The example
file is self contained with all the structs, typedefs
and function prototypes. I tested with "sdcc
--model-large -c dirlist.c". The excessive SLOC usage
also happens in small memory model.

In case the attachment does not work, you can grab a
copy of this test code with this URL:

http://www.pjrc.com/tmp/dirlist.c

Paul
paul@pjrc.com (for some reason, can't log in to
sourceforge this afternoon...)

Discussion

  • Example code

     
    Attachments
  • Johan Knol
    Johan Knol
    2003-03-27

    • milestone: --> fixed
    • assigned_to: nobody --> johanknol
    • status: open --> closed
     
  • Johan Knol
    Johan Knol
    2003-03-27

    Logged In: YES
    user_id=63512

    So, my live range hunt isn't over yet ;-). I'll try again later.