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
_atof.c:88: error: storage class not allowed for
automatic variable 'sign' in reentrant function unless
_atof.c:87: error: code not generated for 'atof' due to
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).
Log in to post a comment.