[LLVMdev] malloc, magic, and embedded compilation

Jonathan S. Shapiro shap at eros-os.com
Wed May 14 07:45:44 PDT 2008


On Wed, 2008-05-14 at 16:15 +0200, Duncan Sands wrote:
> I don't think the logic is based on "main", but on whether functions
> are marked "internal" or not.  That said, GlobalOpt.cpp seems to reason
> based on the name "main" (most likely bogus, because of constructors/
> destructors running before main).

Umm. That sounds like a test case that really wants to get written.

Does the LLVM C front-end support the "init" attribute for C functions
(which has similar effect)?

shap




More information about the llvm-dev mailing list