> is there any chance an svn build might have fixed it? Not to my knowledge, but I may be wrong.
> > Btw. Make sure that you use the same options for compiling and linking. > > So, this is with : > (compile) > sdcc -mmcs51 --model-large --xram-loc 0x100 --stack-auto -c main.c > > (linking) > sdcc -o mmc.ihx --model-large --xram-loc 0x100 main.rel mmc.rel > diskiommc.rel diskio.rel tff.rel > > I.e. there's no --stack-auto in the linking; That is wrong. You should use it. > when I put it there I get: > > sdcc -o mmc.ihx --model-large --xram-loc 0x100 --stack-auto main.rel > mmc.rel diskiommc.rel diskio.rel tff.rel > ?ASlink-Warning-Couldn't find library 'mcs51' > ?ASlink-Warning-Couldn't find library 'libsdcc' > ?ASlink-Warning-Couldn't find library 'libint' > ?ASlink-Warning-Couldn't find library 'liblong' > ?ASlink-Warning-Couldn't find library 'libfloat' > > ?ASlink-Warning-Undefined Global '__mcs51_genRAMCLEAR' referenced by > module 'main' > ... > > Is stack-auto something that the default libraries need to have been > compiled with ? Yes, the linker must link in a version of the library that is compiled with --stack-auto. Otherwise your code calls the functions with parameters on the stack and the functions themself try to use parameters at a fixed location in memory. The reason you get all these warnings is that SDCC does not ship with a precompiled library with both --model- large and --stack-auto. It only comes with small, small- stack-auto, medium and large. You'll have to compile the library yourself for your combination of options or use one of the defaults. Maarten ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Sdcc-user mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/sdcc-user
