in reply to Re^6: 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.
Regarding the push+pop: it takes fewer bytes. 2+1 == 3 vs 5 bytes of immediate mov.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^8: Help me to understand increment / decrement operator behavior in perl
by BrowserUk (Patriarch) on Mar 05, 2015 at 12:05 UTC |