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