X-Git-Url: http://plrg.eecs.uci.edu/git/?a=blobdiff_plain;f=docs%2FFAQ.html;h=ea2f802d1dd17f2bac314d4fd1e7d588777196cd;hb=8e3425082079e83a43b1c60e921ce7db00f17ddc;hp=58230414172a198aaf7a316e8ce360bfb6a008e5;hpb=e9a6c35f51f413c40c6645cd5d62c1d25bf0e9eb;p=oota-llvm.git diff --git a/docs/FAQ.html b/docs/FAQ.html index 58230414172..ea2f802d1dd 100644 --- a/docs/FAQ.html +++ b/docs/FAQ.html @@ -89,8 +89,6 @@
  • Questions about code generated by the GCC front-end
      -
    1. What is this __main() call that gets inserted into - main()?
    2. What is this llvm.global_ctors and _GLOBAL__I__tmp_webcompile... stuff that happens when I #include <iostream>?
    3. @@ -591,29 +589,6 @@ them.

      Questions about code generated by the GCC front-end -

      - -What is this __main() call that gets inserted into main()? -

      - -
      -

      -The __main call is inserted by the C/C++ compiler in order to guarantee -that static constructors and destructors are called when the program starts up -and shuts down. In C, you can create static constructors and destructors by -using GCC extensions, and in C++ you can do so by creating a global variable -whose class has a ctor or dtor. -

      - -

      -The actual implementation of __main lives in the -llvm/runtime/GCCLibraries/crtend/ directory in the source-base, and is -linked in automatically when you link the program. -

      -
      - - -

      What is this llvm.global_ctors and