[LLVMdev] Idea for Google Summer Code : C Compiler for EFI Byte Code implement in LLVM

Chris Lattner clattner at apple.com
Tue Mar 30 11:23:51 PDT 2010


On Mar 30, 2010, at 10:31 AM, 琬菁楊 wrote:

> What do you mean by "variable sized pointers"?  What does:
> 
> struct  S {void *X; };
> 
> return for sizeof(struct S); ?
> 
> I have surveyed the UEFI spec2.3.
> In my opinion, if the EBC VM is running on 32-bit processor, return value is 4
> if the EBC VM is running on 64-bit processor, return value is 8
> 
> If error out on any sizeof that include a pointer, does it means that no issue about pointer size determined at runtime??

Yes, if it is an error, it makes it much more feasible to implement.

-Chris
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20100330/0b192afa/attachment.html>


More information about the llvm-dev mailing list