#489 Far too many SLOCs


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:


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


  • Paul Stoffregen

    Paul Stoffregen - 2003-03-26

    Example code

  • 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

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


Log in to post a comment.

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

Sign up for the SourceForge newsletter:

No, thanks