What I was doing - compiling a number of c-files and using sdar I put 
them in a lib.
each .c file results in a .rel file - containing a number of functions. 
But it seems that final linking stage takes all functions from each .rel 
file.
Is this observation correct?

I use the "STM8 StandardPeripherals Driver" -  and as a workaround a 
produced a "Minilib" .c-file containing only the needed functions.

My code uses two Interrupt Sources UART2 RX and TIM4 OVERFLOW - it 
compiles without troubles but the code is not running. Any suggestions 
where to start looking.

Code is hosted on sourceforge: 
http://sourceforge.net/p/oggstreamer/oggs-stm8-firmware-001/ci/master/tree/

I am using this firmware for an OpenHardware-Project called OggStreamer 
(http://oggstreamer.wordpress.com) - so it would be really nice to get 
rid of IAR-Kickstarter Version and use SDCC instead.

best wishes, Georg

On 28.05.2013 16:34, Philipp Klaus Krause wrote:
> 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


------------------------------------------------------------------------------
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

Reply via email to