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
Post a Comment