[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Questions about asm.



Hi,

When I declare a pointer in a program and then I compile and disassemble the code asm is confused:

Instead to make 'movl %0x4,%esp' (because one pointer are 4 bytes), it makes 'mov %0x18, %esp'.

I compile with gcc and debug with gdb. Why move 24 instead 4?
Any idea?

Regards.

Angel Ramos.



Reply to: