[LLVMdev] C++ Constructors

Anton Korobeynikov anton at korobeynikov.info
Fri Dec 12 05:20:43 PST 2008


> Yep, the code generators handle them magically, usually by emitting
> something to a .init section.
Correct. Currently this is purely target-specific thing, for example,
mingw32 still uses __main(). Almost all other targets emit special
tables which is called by libc/whatever runtime code before calling to
main().

-- 
With best regards, Anton Korobeynikov
Faculty of Mathematics and Mechanics, Saint Petersburg State University



More information about the llvm-dev mailing list