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

Chris Lattner clattner at apple.com
Fri Mar 19 12:47:19 PDT 2010


On Mar 19, 2010, at 11:08 AM, 琬菁楊 wrote:

> 
> Hello Tristan and all,
> 
> I have already know that if I want to do this feature(c -> EFI Byte code) for GCC
> I should further modify the GCC front end(parser) to solve the problem (the size 
> of pointer is determined at run time).
> 
> I have read a powerpoint about LLVM (http://llvm.org/pubs/2008-10-04-ACAT-LLVM-Intro.pdf)
> It is the LLVM-GCC design graph (http://www.im.ntu.edu.tw/~b95030/llvm_gcc.png).
> According to the above discussion , LLVM IR doesn't care about the size of pointers.
> I am wondering how could LLVM support dynamic pointer size model without modifying 
> GCC front end??

What do you mean by "variable sized pointers"?  What does:

struct  S {void *X; };

return for sizeof(struct S); ?

-Chris
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20100319/4e5ea081/attachment.html>


More information about the llvm-dev mailing list