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
Arm-none-eabi function that never used
Moderator: RoccoMarco
- Giovanni
- Site Admin
- Posts: 14892
- Joined: Wed May 27, 2009 8:48 am
- Has thanked: 1202 times
- Been thanked: 996 times
Re: Arm-none-eabi function that never used
The function is compiled by the compiler, then the linker "garbage collector" removes unused functions from the final code, same for variables.
Giovanni
Giovanni