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

Popular posts from this blog

java - nested exception is org.hibernate.exception.SQLGrammarException: could not extract ResultSet Hibernate+SpringMVC -

sql - Postgresql tables exists, but getting "relation does not exist" when querying -

asp.net mvc - breakpoint on javascript in CSHTML? -