#44 Allow compiling library with --stack-auto

closed
None
5
2004-10-19
2003-11-11
No

Hi.

I tried compiling my program with --stack-auto to
save some internal memory and, unless I am missing
something, I have to compile also the library with
that option to get it working.
It doesn't seem to be very easy however as the
compilation of library aborts with an error.

mkdir -p build/large
../../bin/sdcc -I../../device/include --model-large
--nostdinc --stack-auto -c _atof.c -o
build/large/_atof.rel
_atof.c:88: error: storage class not allowed for
automatic variable 'sign' in reentrant function unless
static
_atof.c:87: error: code not generated for 'atof' due to
previous errors

I can easily "fix" this and a couple of subsequent
errors, but then there are some errors that are not
obvious for me how to resolve.
Am I missing something here, or the library is not
supposed to be compilled that way?
Adding the ability to compile the library with that
option would be nice (unless it is not yet and I am
doing something wrong).

Discussion

  • Maarten Brock

    Maarten Brock - 2004-10-19

    Logged In: YES
    user_id=888171

    All library files should compile with --stack-auto by now
    An easy way is to use "make model-mcs51-stack-auto" in
    device/lib/ of the source tree.

     
  • Maarten Brock

    Maarten Brock - 2004-10-19
    • assigned_to: nobody --> maartenbrock
    • status: open --> closed
     

Log in to post a comment.

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

Sign up for the SourceForge newsletter:





No, thanks