Menu

#96 sloc variables in xdata when --model-large

open
nobody
None
5
2005-01-19
2005-01-19
No

hi all
some more complicated function uses temporary variables sloc0, sloc1 etc. These variables are always allocated in the data segment. This segment is filled up very early. The only countermeasure is using --auto-stack option.

It's possible to add an option to make all sloc variables in xdata (or make it by default in large model)?

thanx

Jet

Discussion

  • Frieder Ferlemann

    Logged In: YES
    user_id=589052

    Hi, I'd like to add to this: have an option which limits the
    number of slocs in data segment to a user-specifiable number
    of bytes per function. This would allow a relatively fine
    adjustment between code-size and data-segment usage.

    This limit could also be of use in the small model. If the
    limit was exceeded then SDCC would start to assign slocs
    within xdata memory. (If the default would be unlimited this
    would correspond to SDCC's present scheme.)

     
  • Josef Pavlik

    Josef Pavlik - 2005-01-29

    Logged In: YES
    user_id=756222

    Another idea - make an pragma that specify this value for every single
    function. User would make critical function's slocs in the data segment and
    leave another non critical parts in the xdata as specified by an global option.

     

Log in to post a comment.