F
Francis Moreau
Hello,
I declared the following global variable:
struct {
int a,
int b,
} my_global = {
.a = 5,
};
So only one field of the structure is initialized, so I expect that
the variable is part of .data section with the 'b' field init to 0.
But if I look where the compiler stores the global, it's in bss...
Could anybody enlight me ?
Thanks
I declared the following global variable:
struct {
int a,
int b,
} my_global = {
.a = 5,
};
So only one field of the structure is initialized, so I expect that
the variable is part of .data section with the 'b' field init to 0.
But if I look where the compiler stores the global, it's in bss...
Could anybody enlight me ?
Thanks