Bootstrapping compiler design pdf


















Artificial Intelligence. Cloud Computing. Data Science. Angular 7. Machine Learning. Data Structures. Operating System. Computer Network. Compiler Design. Computer Organization. Discrete Mathematics. Ethical Hacking. Computer Graphics. Software Engineering. Web Technology. Cyber Security. C Programming. Control System. Data Mining. Data Warehouse. Bootstrapping is a process in which simple language is used to translate more complicated program which in turn may handle for more complicated program.

This complicated program can further handle even more complicated program and so on. Writing a compiler for any high level language is a complicated process.

It takes lot of time to write a compiler from scratch. Hence simple language is used to generate target code in some stages. Suppose we want to write a cross compiler for new language X. The implementation language of this compiler is say Y and the target code being generated is in language Z. That is, we create XYZ. That means a compiler for source language X that generates a target code in language Z and which runs on machine M.

Following diagram illustrates the above scenario. Example: We can create compiler of many different forms. Now we will generate. Compiler which takes C language and generates an assembly language as an output with the availability of a machine of assembly language. Step First we write a compiler for a small of C in assembly language.

Step Then using with small subset of C i. C0, for the source language c the compiler is written. Step Finally we compile the second compiler. Next Input Buffering in Compiler Design.



0コメント

  • 1000 / 1000