on-internet
← Community

What's the difference between 'push' and 'pushq' in at&t assembly

Stack Overflow ·

I've recently started my quest of obtaining a greater understanding as to how my computer works. My question is in regards to the differences between push and pushq. I'm aware that push writes a value to the stack and my assumption is that pushq does the something similar. The fact the q is there makes me think that there should be a subtle difference but I can't seem to make sense of the difference. I stated to ponder this question while debugging the file /lib/udev/iphone-set-info using gdb with the command 'layout asm'. the code in question is : pushq $0x0 push %r9 I understand that $0x0 is

Comments

Sign in or sign up to comment and upvote.

No comments yet.