Hello!
I would like to clarify something master programmers.
-
I am doing an arduino library and I want to minimize the code and memory footprint. I have a class (let's call it Simple) that offers some basic functions to interact with a device. Then I have a subclass of Simple (let's call it Advanced). I did that thinking if the user only wanted simple functions we would no need code from the advanced. It is true that the linker eliminates "dead" functions from the assembly code that goes on the board?
-
The same principle applies class fields objects? if a field from a class isn't used in the code it is somehow removed from the assembly? This one I have real doubts about it.
Many thanks