Michael Brennan wrote:
error_code: pushl %ds pushl %eax xorl %eax, %eax pushl %ebp pushl %edi pushl %esi pushl %edx decl %eax # eax = -1 pushl %ecx pushl %ebx
My question is why the 'decl %eax' is 4 lines after the clearing of eax 'xorl %eax %eax'. Can't it just be put right after xorl?
It's for CPU pipeline optimization.
-- Timur Tabi Staff Software Engineer timur.tabi@xxxxxxxxxxx
-- Kernelnewbies: Help each other learn about the Linux kernel. Archive: http://mail.nl.linux.org/kernelnewbies/ FAQ: http://kernelnewbies.org/faq/