[LLVMdev] Idea for Google Summer Code : C Compiler for EFI Byte Code implement in LLVM
Chris Lattner
clattner at apple.com
Thu Apr 1 15:00:04 PDT 2010
On Apr 1, 2010, at 1:27 PM, 琬菁楊 wrote:
> int main()
> {
> size_t size;
> size = fsize3(10); // fsize3 returns 13
> return 0;
> }
> And I found some information with clang about VLA
> (http://clang.llvm.org/cxx_compatibility.html#vla)
> Does llvm/clang doesn't support sizeof is evaluated at run time??
Yes, clang supports vlas as defined in C99 and sizeof can return a dynamic value. C99 vlas cannot occur in structs though, and clang does not support them in structs.
-Chris
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20100401/efd61586/attachment.html>
More information about the llvm-dev
mailing list