AnsweredAssumed Answered

Cosmic, compile without unused code

Question asked by zanca.dalibor on Oct 10, 2016
Latest reply on Oct 17, 2016 by zanca.dalibor
Hi,
I made a primitive program that calls few functions of Standard Peripheral Library / CLK and GPI modules, so source files  stm8s_clk.c + stm8s_gpio.c were added to project.
After compilation I checked .map file and found that code contains ALL functions of these modules, despite most of them are never called.
What needs to be done in order to not compile unused functions ?

Outcomes