[cfe-dev] alignment of local variables

Akira Hatanaka ahatanak at gmail.com
Mon Mar 28 10:28:30 PDT 2011


I just wanted to know if it is absolutely necessary to implement dynamic
stack realignment in the backend. If the maximum alignment is no larger than
the default alignment of the run-time stack, you won't have to adjust the
stack pointer at run-time.

On Mon, Mar 28, 2011 at 10:03 AM, Eric Christopher <echristo at apple.com>wrote:

>
> On Mar 28, 2011, at 9:58 AM, Akira Hatanaka wrote:
>
> > Is it possible to set a maximum alignment for local variables, either by
> passing a command line option or using target-specific hooks?
> > For example, in the code shown below, if the maximum alignment is 8, the
> alignment attribute in the source code (__aligned__(16)) will be ignored,
> and local variable a will be aligned on an 8-byte boundary.
>
> No, and why would you want to do this?
>
> -eric
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20110328/0341cfab/attachment.html>


More information about the cfe-dev mailing list