[LLVMdev] libc dependencies, code generation questions

Chris Lattner sabre at nondot.org
Thu Jun 7 14:24:26 PDT 2007


On Thu, 7 Jun 2007, Nick Lewycky wrote:
>> The way you write it makes this sound dubious.  The way the standard
>> is written, particularly w.r.t. external identifiers, makes this
>> quite legitimate.
>
> Assuming you're talking about the C standard, perhaps. Other languages
> won't necessarily have the same rules. For that matter, even C specifies
> hosted vs. free-standing. In free-standing C the library chapters of the
> standard don't apply as the user is left to define their own functions.
> This is popular among embedded system developers.

This is the simplifylibcalls pass, which is turned off when you pass 
-fno-builtins.  If a pascal compiler (or anything else) doesn't want 
those, it should not run that pass.

-Chris

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



More information about the llvm-dev mailing list