On 27.05.2013 22:26, Georg Ottinger wrote: > I am experimenting with the STM8 Port of sdcc. Therefore I am porting a > firmware application from IAR to SDCC. When looking at the .map File I > notice that there are a lot of unused functions included. Any Idea to > overcome this problem? > > best wishes, Georg
Just like for any other target, teh linker should do this: * Put everything from any .rel file into the result. * Take just as many modules as needed to satisfy dependencies from any .lib files and put it into the result. Can you give an example where the linker puts unused functions from .lib files into the result? Philipp ------------------------------------------------------------------------------ Try New Relic Now & We'll Send You this Cool Shirt New Relic is the only SaaS-based application performance monitoring service that delivers powerful full stack analytics. Optimize and monitor your browser, app, & servers with just a few lines of code. Try New Relic and get this awesome Nerd Life shirt! http://p.sf.net/sfu/newrelic_d2d_may _______________________________________________ Sdcc-user mailing list Sdcc-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/sdcc-user