Page 1 of 1

Arm-none-eabi function that never used

Posted: Sat Apr 18, 2015 1:13 pm
by deadlyboy
hi every body

i my code where ever i defined variable which i never used , at compile time the compiler eliminate it from compiled code .

so how about unused functions . are they compile ?? i google it and i found it depends on compile but i don't know Arm-none-eabi eliminates that function or not

thanks in advance
MA

Re: Arm-none-eabi function that never used

Posted: Sat Apr 18, 2015 2:12 pm
by Giovanni
The function is compiled by the compiler, then the linker "garbage collector" removes unused functions from the final code, same for variables.

Giovanni