Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
4 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6eb64ab
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does this really make a difference?
Unused functions should be removed by the compiler anyway...
6eb64ab
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes but it will still compile the c file to an .o file and doesn't link the functions because they aren't needed.
So this actually saves some compile time (and remove some overhead while compiling) ;)
6eb64ab
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
True, it saves compile time...
6eb64ab
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We use a separate FBW more and more often for safety reasons. The less code you put in it, the better you can manage the safety. It's cool that the compiler removes unused functions. It is safer not to put the code there in the first place. If anyone ever runs into trouble because his FBW does not have math functions, then please let me know. Otherwise I do not see why the FBW needs math.