Suppose I write a huge, self-contained C file and compile it like cc -O3 main.c
. What will be the differences if I had declared every function and variable in the file static
or not? Will it have an effect on optimisation?
Suppose I write a huge, self-contained C file and compile it like cc -O3 main.c
. What will be the differences if I had declared every function and variable in the file static
or not? Will it have an effect on optimisation?