in reply to Re^7: Help me to understand increment / decrement operator behavior in perl
in thread Help me to understand increment / decrement operator behavior in perl
Well, in that same asm output, there's sub rsp, 56 (make room for the stack frame), then mov DWORD PTR a$rsp, 10 (initializes the a variable on stack). In other words, variables are placed on stack.
Of course the C compiler uses the stack; just not for performing an integer comparison.
The question is whether any C compiler would move a numeric value to the stack in order to compare it against another numeric value; not whether one or both of those values might have transitioned through the stack on their way to the point of comparison. So, I'm lost as to what point you are trying to make.
|
---|