This is the mail archive of the gcc@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]

Re: Assembly code generated


Rest of the assembly code I more or less understand can somebody tell me
what purpose, if any, do the instructions mov $0x0,%eax sub %eax,%esp
serve ?

None but at -O0 the compiler is not smart enough to remove them. Try -O1 or higher optimization levels.


Paolo


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