This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: Issue with allocating stack space to local variables (frame pointer)
"Sivaprasad.pv" <sivaprasad.pv@redpinesignals.com> writes:
> In our case inorder to push some value onto the stack , it place the
> value into the location pointed by stack pointer first and then
> decrement/increment the stack pointer (post operation).
> jump to sub- routine & return instructions are implemented using
> above method.
> Initially our stack is bottom-up stack,currently we want to change it
> to top-down stack.
> Is it possible to do this in compiler with out changing our ISA(
> instruction set architecture).
Look at STACK_GROWS_DOWNWARD and STACK_PUSH_CODE.
Ian