Displaying 3 results from an estimated 3 matches for "baozen".
Did you mean:
baozeng
2012 Aug 14
0
[LLVMdev] [cfe-dev] global alignment
On Aug 14, 2012, at 7:31 AM, Baozeng wrote:
> Hello all,
> I found that the alignment for stack value has no limitation, but for global value, it has a limitation.
>
> Here is an example:
>
> #include <stdio.h>
> #include <stdlib.h>
>
> char x[4000] __attribute__((aligned(4096)));
>
>...
2012 Aug 14
1
[LLVMdev] [cfe-dev] global alignment
On 8/14/12 12:19 PM, John McCall wrote:
> On Aug 14, 2012, at 7:31 AM, Baozeng wrote:
>> Hello all,
>> I found that the alignment for stack value has no limitation, but for global value, it has a limitation.
Baozen, with what version of LLVM did you do the following test? Was it
LLVM mainline?
>>
>> Here is an example:
>>
>> #include &l...
2012 Aug 14
3
[LLVMdev] global alignment
...is :
x is 0x804d000
y is 0xbffd2000
We can see that the stack value y is aligned to be 8192, but the global
value x is not!
My target OS is 32-bit Linux. Anyone can explain this? or is this a bug of
clang?
--
Best Regards,
Baozeng
Ding
OSTG,NFS,ISCAS
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20120814/582d9da1/attachment.html>