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]

Re: i386 stack missalignment on main


P.S.: Another way would be, at the start of the function, to push the
old stack pointer, and if alignment requires and adjustment, memmove
all the arguemnts in the stack and the saved stack pointer to fit with
the adjusted stack pointer.
So no extra register is required.
sibcalls between like-stack-aligning functions should probably use an
alternate entry point, after the stack is aligned.


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