Nov-14-2016, 09:41 PM
Wot? You don't code the C compiler with your bare hands? These youngsters... they get lazy.
Now, I have never really done it but in the early days of PC-DOS, you could bootstrap a C compiler on your PC: a very simple compiler was coded in Basic, with which you would compile an intermediate-strength C compiler, which was able to compile a fully-fledged(*) C compiler.
(*) in the first-half-of-80s sense, ie, fairly barebones by today's standards(**).
(**) according to an aquaintance who was writing C-C++ compilers for a living the really hard part is providing meaningful error messages and be able to recover from the more severe syntax errors.
Now, I have never really done it but in the early days of PC-DOS, you could bootstrap a C compiler on your PC: a very simple compiler was coded in Basic, with which you would compile an intermediate-strength C compiler, which was able to compile a fully-fledged(*) C compiler.
(*) in the first-half-of-80s sense, ie, fairly barebones by today's standards(**).
(**) according to an aquaintance who was writing C-C++ compilers for a living the really hard part is providing meaningful error messages and be able to recover from the more severe syntax errors.
Unless noted otherwise, code in my posts should be understood as "coding suggestions", and its use may require more neurones than the two necessary for Ctrl-C/Ctrl-V.
Your one-stop place for all your GIMP needs: gimp-forum.net
Your one-stop place for all your GIMP needs: gimp-forum.net