Re: Ways to fill the stack

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

 



On Sat, Feb 9, 2013 at 10:42 PM,  <sztfg@xxxxxxxxx> wrote:
> 10.02.2013, 10:13, "Ian Lance Taylor" <iant@xxxxxxxxxx>:
>
>>  I don't see why this would ever use a push instruction.  Arguments are
>>  passed in registers on x86_64.  For each call the local array is built
>>  on the stack, then the address of the array is passed in a register.
>
> Local array can be build on the stack, using push instruction.

Sure, but why would that be a good idea?

In any case GCC does not generally use push instructions for local
variables.  Instead GCC allocates a frame on the stack, and fills in
values as needed.  GCC does in some cases use push instructions to
push arguments to functions.  Is there any reason that GCC should use
push instructions for local variables?

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