[LLVMdev] LLVM and libc

Chris Lattner sabre at nondot.org
Mon Nov 6 18:54:21 PST 2006


On Mon, 6 Nov 2006, [ISO-8859-1] Pertti Kellomäki wrote:
> What I don't quite see is how crt0 fits in the picture. Am I
> right in assuming that when llvm-gcc emits LLVM byte code, there
> is no crt0 involved? I haven't checked how the other back ends
> do it, but I assume that they rely on the host libc and crt0.
> In my case, I envision libc being linked in at the bytecode
> level, and crt0 being linked in by the back end.
>
> Does this sound like a sensible approach?

Yep, makes sense.

-Chris

-- 
http://nondot.org/sabre/
http://llvm.org/


More information about the llvm-dev mailing list