This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

use of static , is it helpful

Using keyword static at modular level , i.e functions/variables which are used in same module only are declared as static, is it helpful in generating better code.

I read in 8051 declaring static at modular level is good ,as it helps in generating smaller code. Because compiler can now use ACALL inst. instead of LCALL. So faster calling & smaller code is generated.

Does samply apply to cortex M3 or not ? There is no ACALL or LCALL in it but is there any similar to it.

0