This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: Reverse the direction of stack growth
- From: PhDUCSB <eng dot hmohsen at gmail dot com>
- To: gcc-help at gcc dot gnu dot org
- Date: Mon, 12 Oct 2009 10:33:33 -0700 (PDT)
- Subject: Re: Reverse the direction of stack growth
- References: <25458975.post@talk.nabble.com> <m3ws3za0jq.fsf@google.com>
Thanks for that tip. I tried doing that but the problem right now is that
both compilers( the original and mine) produce the same executable
regardless of any modifications I have done. I really have no clue. Please
help.
Ian Lance Taylor-3 wrote:
>
> 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
>
>
--
View this message in context: http://www.nabble.com/Reverse-the-direction-of-stack-growth-tp25458975p25859949.html
Sent from the gcc - Help mailing list archive at Nabble.com.