Could anyone please explain what exactly bootstrapping is?
As far as i know it is something related to "the compiler for C itself wriiten in C"
The story is that if you try to pull on your boots (which you do by holding the bootstraps and pulling upward), and the boots are a 'perfect fit' (very tight), then you might pull yourself up into the air by your bootstraps. Hence the name 'bootstrapping': A compiler that is written in its own language (pulls itself up into usefulness without outside support). If you think about it, you will realize that only the first compiler of a particular language is problematic. Thereafter, you compile version N+1 using version N, then you recompile version N+1 using itself, partly as a test. When I was working with the GNU C++ compiler, as I recall it, that step was repeated until you were satisfied that the executables and libraries were the same after a round of recompilation as they had been before.
May i know the procedure in brief if possible
Say you invent Your Language (call it
y ). You write a minimal
y compiler using C. It is pretty rough, but it is enough to compile an object file that your linker can link; and it recognizes all the
y syntax that you need to replicate the behavior of the initial C-based compiler. Call that C-based compiler "y version 0.0"
y v 0.0working
yfor the language.
y, and your version is 0.1
From this point on, you add features using the
y language, to the
y compiler. At each step, you follow this pattern (if you do it a GNU used to do it):
y3If they are the same (except time stamps) then you are done. Rename
yand be happy
That ws grt..thanx :)