I’m developing an embedded application on VxWorks.
I know that the static function is called only in the file where defined and the non static function is called in any file in the source project.
I’m wondering if there is a difference between static and non static function concening execution time and concerning memory
There is absolutely no performance difference. The the only thing the
statickeyword does on functions is given them internal linkage, which means they are only accessible in the file they are defined in.