[llvm-commits] [PATCH] Add malloc call utility functions

Anton Korobeynikov anton at korobeynikov.info
Sat Sep 12 13:05:30 PDT 2009


Hello, Duncan

> What special things does LLVM do with main?  I would have expected
> all functions with external linkage to be treated as possible program
> entry points...
Many things unfortunately...

1. On some targets we need to emit call to __main to run static ctors
2. Or force frame pointer

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




More information about the llvm-commits mailing list