Quantcast
Channel: Where are static variables stored? - Electrical Engineering Stack Exchange
Viewing all articles
Browse latest Browse all 7

Where are static variables stored?

$
0
0

Suppose I am using a 8051. I compiled a code which has a static variable.Where that Static Variable will be stored? In RAM? In Stack? On Heap?? In flash? Where?

Also, Correct me if I am wrong:CONST are stored in ROM. And global variables are stored in Flash.(What if I don't have Flash?)

I am expecting answers with respect to Embedded Programming. It's not like in Code Segment or in .bss, but exact where on my board?


Viewing all articles
Browse latest Browse all 7

Latest Images

Trending Articles





Latest Images