Re: Issue with allocating stack space to local variables (frame pointer)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



"Sivaprasad.pv" <sivaprasad.pv@xxxxxxxxxxxxxxxxxx> 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

[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux