gcc - Static local C variables are followed by a number in assembler code. Is that number random? -


i wonder if number follows local static variable name in assembler random or if there meaning.
compiled sample c source gcc v. 4.7.2 in debian wheezy; assembler listing shows row containing:

.comm   i.1705,4,4 

where 1705 come from? thank in advance.

here source:

int main() { static int i=0; return i; }  

it counter of identifiers encountered during compilation. if put declaration behind, gives me next number. if put another, non-static, object in between difference 2.


Comments

Popular posts from this blog

windows - Single EXE to Install Python Standalone Executable for Easy Distribution -

c# - Access objects in UserControl from MainWindow in WPF -

javascript - How to name a jQuery function to make a browser's back button work? -