??? 03/16/09 07:33 Read: times |
#163479 - 'static' local variables Responding to: ???'s previous message |
Per Westermark said:
When you declare a local variable as static, it will not be placed on the stack. Note that Keil C51 never places local variables on the stack. However, although the implementation is different, the effect remains the same; viz: it will ... become a global nameless variable only accessible by that specific function. So it will remember the value between separate calls to the function. This also means that it will permanently occupy its space in RAM... |
Topic | Author | Date |
Can ISR functions be made 'static'? | 01/01/70 00:00 | |
What does 'static' mean? | 01/01/70 00:00 | |
Nothing magic with "static" | 01/01/70 00:00 | |
'static' local variables | 01/01/70 00:00 | |
Difference between normal auto and static auto.![]() | 01/01/70 00:00 |