in Compiler Design
11,828 views
1 vote
1 vote

What is the difference between Cross Compiler and Bootstrapping ?

in Compiler Design
11.8k views

1 comment

somebody tell this:(
0
0

1 Answer

7 votes
7 votes
Best answer

cross compiler is a compiler capable of creating executable code for a platform other than the one on which the compiler is running. For example, a compiler that runs on a windows  but generates code that runs on Android is a cross compiler.

bootstrapping is the process of writing a compiler in the source prog. lang.that it intends to compile the programs in the source language.

If one needs to obtain a compiler for language X (which is written in language X), there is the issue of how the first compiler can be written (Chicken and Egg problem ). 

  • Implementing an interpretor or compiler for language X in language Y. Niklaus Wirth reported that he wrote the first Pascal compiler in Fortran
selected by

1 comment

and that bootstarpping is done where part of the program is compiled in low level language and then the actual compiling starts
0
0

Related questions