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

Tristan Gingold gingold at adacore.com
Wed Apr 7 00:03:35 PDT 2010

On Apr 6, 2010, at 6:27 PM, Chris Lattner wrote:

> On Apr 6, 2010, at 1:10 AM, Tristan Gingold wrote:
>> On Apr 3, 2010, at 2:36 PM, Russell Wallace wrote:
>>> On Fri, Apr 2, 2010 at 6:17 PM, Chris Lattner <clattner at apple.com> wrote:
>>>> No, please don't.  This is something we specifically do not want to support.  The issue is not the parser, the issue is that struct field offsets are no longer constant in this model.
>>> What about declaring that pointers are always 64 bits, for all
>>> purposes other than final code generation of actual pointer
>>> instructions? Would that solve the problem?
>> No, sizeof will report wrong values.
> Which won't matter (as long as sizeof is consistent), because EFI is a closed system.

No, EFI is not that closed: boot loaders interface with EFI.

Don't forget that EBC code can call native functions.  If sizeof or fields offsets mismatch I fear that the
program won't work.


More information about the llvm-dev mailing list