How to Understand C language compiler is developed in C Language

Source: Internet
Author: User

I saw a saying earlier: "The Visual Studio 2010 interface is developed using WPF."

Later I saw that "C language compilers are usually developed using C language or C ++ language"


It seems a little confused about "self-generated" and "chicken eggs and eggs.

WPF itself is a development project template provided in Visual Studio. How can I use it to develop the Visual Studio interface? Is it the existing Visual Studio or the first WPF?

C language compiler is used to compile the C language. If the C language compiler is also developed by C, is there a C first or a C compiler first? Where does C compiler come from without C? How can I compile C without a C compiler? Good people!


After thinking carefully, I managed to solve the problem and finally thought of a solution that satisfied me. In fact, the correct understanding of the phrase "C language compiler is developed in C Language" should be like this process:

1. UseAssembly LanguageCompile a C language compilerI .exe(That is, the early C compiler );

2. NowI .exeThen you can useI .exeTo compile C code and get a programII.exe

3.II.exeThe function can be to read the text (that is, the C language source code) and generate the corresponding assembly code based on the text.

4. HereII.exeIt is actually a C language compiler developed in C language.



Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.