This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Assembly Code Query


Hi all,
	I am using gcc -S to generate this assembly code. The compiler
gives:

		andl    $-16, %esp

I understand that we are here basically anding 0xffff00ff with %esp. But
what I can't get is use of doing this. Could somebody tell me the
significance of doing this.



Detailed code:

        pushl   %ebp
        movl    $16, %edx
        movl    %esp, %ebp
        subl    $8, %esp
        andl    $-16, %esp
        movl    %edx, 4(%esp)


TIA
-- 
``My interest is in the future, because I am going to spend rest of my 
life there.''
				-- Charles F. Kettering 

	Date: Sat Feb 26 04:54:28 IST 2005
	GNU/Linux [2.6.11-rc5-ncd] System: up  9:05


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]