3 ms·
No that's qualitatively different. There's no way for a piece of C code to look at the local variables of another C function. But in Python you can do that. Wha
by kccqzy 8y ago
No that's qualitatively different. There's no way for a piece of C code to look at the local variables of another C function. But in Python you can do that. What you mean is that C compilers keep the local variables on the stack, and do not eliminate loads/stores so that a debugger can see what the variables are and a debugger can read DWARF information to figure out names of variables. There is no way for code itself to learn these except for implementing DWARF parsing yourself.