Re: gcc optimization and stack allocation.

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

 



"Yang Ye" <leafyoung@xxxxxxxxx> writes:

> Do you have any idea on this scenario: When gcc(3.3.3) allocating
> space for local varibles, e.g. a statement like 'char buf[256];',
> the allocated buffers in stack always come with some space filled in
> at the end. If choose higher optimization level, let's say gcc -O6,
> the spaced filled at the end are smaller. I searched quite a lot
> documents, cannot find the official reason.

There is no "official reason". This depends on various gcc internals
in a hard to predict way. The real question is: why do you care?

-- 
	Falk

[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