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]

Re: Reverse the direction of stack growth


PhDUCSB <eng.hmohsen@gmail.com> writes:

> I am trying to modify the gcc backend to reverse the stack growth direction.
> Do you think this is an easy task to do?

It kind of depends on the backend.  It's easy to change what the
middle-end cares about--just undefine STACK_GROWS_DOWNWARD.  You'll have
to make sure that the backend does all the right things in the function
prologue and epilogue code.

Ian


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