memory - How to let gcc actually allocate variables instead substituting with symbols? -
i noticed if have variables defined char = 'a';
or char a; = 'a';
or char a; = 'a'; = 'b';
, , try print a
in gdb, tells me no symbol "a" in current context.
. apparently gcc, during compilation, optimizes a character constant, instead of char
variable holding value.
how tell gcc not trick, treat a
variable (allocate memory , assign character value memory)?
Comments
Post a Comment