[LLVMdev] OS Development

Daniel Berlin dberlin at dberlin.org
Fri Jun 15 19:39:26 PDT 2007


On 6/15/07, Willow Schlanger <wrschlanger at gmail.com> wrote:
> Hi,
> This way the back-end can optimize drivers globally (inter-procedural
> analysis) and the back-end can generate code optimized for the current
> machine. If you boot up the OS on a 32-bit PC the SAME driver can be
> used, the IR is simply 'recompiled' (code is generated) for a new target.

You still have to know the sizes of datatypes, calling convention,
etc, on various platforms, if you want it to interoperate. LLVM IR
won't help you with that.

Compiler IR's rarely make a good match for direct coding of
applications/drivers, even if they are as nice as LLVM's IR.

:)



More information about the llvm-dev mailing list